| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/platform/impl/quic_socket_utils.h" | 5 #include "net/tools/quic/platform/impl/quic_socket_utils.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <linux/net_tstamp.h> | 8 #include <linux/net_tstamp.h> |
| 9 #include <netinet/in.h> | 9 #include <netinet/in.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| 11 #include <sys/socket.h> | 11 #include <sys/socket.h> |
| 12 #include <sys/uio.h> | 12 #include <sys/uio.h> |
| 13 #include <unistd.h> |
| 13 #include <string> | 14 #include <string> |
| 14 | 15 |
| 15 #include "net/quic/core/quic_packets.h" | 16 #include "net/quic/core/quic_packets.h" |
| 16 #include "net/quic/platform/api/quic_bug_tracker.h" | 17 #include "net/quic/platform/api/quic_bug_tracker.h" |
| 17 #include "net/quic/platform/api/quic_flags.h" | 18 #include "net/quic/platform/api/quic_flags.h" |
| 18 #include "net/quic/platform/api/quic_logging.h" | 19 #include "net/quic/platform/api/quic_logging.h" |
| 19 #include "net/quic/platform/api/quic_socket_address.h" | 20 #include "net/quic/platform/api/quic_socket_address.h" |
| 20 | 21 |
| 21 #ifndef SO_RXQ_OVFL | 22 #ifndef SO_RXQ_OVFL |
| 22 #define SO_RXQ_OVFL 40 | 23 #define SO_RXQ_OVFL 40 |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 rc = SetGetSoftwareReceiveTimestamp(fd); | 308 rc = SetGetSoftwareReceiveTimestamp(fd); |
| 308 if (rc < 0) { | 309 if (rc < 0) { |
| 309 QUIC_LOG(WARNING) << "SO_TIMESTAMPING not supported; using fallback: " | 310 QUIC_LOG(WARNING) << "SO_TIMESTAMPING not supported; using fallback: " |
| 310 << strerror(errno); | 311 << strerror(errno); |
| 311 } | 312 } |
| 312 | 313 |
| 313 return fd; | 314 return fd; |
| 314 } | 315 } |
| 315 | 316 |
| 316 } // namespace net | 317 } // namespace net |
| OLD | NEW |