OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/tools/quic/quic_packet_reader.h" | 5 #include "net/tools/quic/quic_packet_reader.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #ifndef __APPLE__ | 8 #ifndef __APPLE__ |
9 // This is a GNU header that is not present in /usr/include on MacOS | 9 // This is a GNU header that is not present in /usr/include on MacOS |
10 #include <features.h> | 10 #include <features.h> |
11 #endif | 11 #endif |
12 #include <string.h> | 12 #include <string.h> |
13 #include <sys/epoll.h> | 13 #include <sys/epoll.h> |
14 | 14 |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "net/base/ip_address.h" | 16 #include "net/base/ip_address.h" |
17 #include "net/base/ip_endpoint.h" | 17 #include "net/base/ip_endpoint.h" |
18 #include "net/quic/quic_bug_tracker.h" | 18 #include "net/quic/core/quic_bug_tracker.h" |
19 #include "net/quic/quic_flags.h" | 19 #include "net/quic/core/quic_flags.h" |
20 #include "net/tools/quic/quic_dispatcher.h" | 20 #include "net/tools/quic/quic_dispatcher.h" |
21 #include "net/tools/quic/quic_process_packet_interface.h" | 21 #include "net/tools/quic/quic_process_packet_interface.h" |
22 #include "net/tools/quic/quic_socket_utils.h" | 22 #include "net/tools/quic/quic_socket_utils.h" |
23 | 23 |
24 #define MMSG_MORE 0 | 24 #define MMSG_MORE 0 |
25 | 25 |
26 #ifndef SO_RXQ_OVFL | 26 #ifndef SO_RXQ_OVFL |
27 #define SO_RXQ_OVFL 40 | 27 #define SO_RXQ_OVFL 40 |
28 #endif | 28 #endif |
29 | 29 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 IPEndPoint server_address(server_ip, port); | 205 IPEndPoint server_address(server_ip, port); |
206 processor->ProcessPacket(server_address, client_address, packet); | 206 processor->ProcessPacket(server_address, client_address, packet); |
207 | 207 |
208 // The socket read was successful, so return true even if packet dispatch | 208 // The socket read was successful, so return true even if packet dispatch |
209 // failed. | 209 // failed. |
210 return true; | 210 return true; |
211 } | 211 } |
212 | 212 |
213 | 213 |
214 } // namespace net | 214 } // namespace net |
OLD | NEW |