OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 #if defined(WEBRTC_MAC) | 38 #if defined(WEBRTC_MAC) |
39 #include <ifaddrs.h> | 39 #include <ifaddrs.h> |
40 #include <machine/types.h> | 40 #include <machine/types.h> |
41 #endif | 41 #endif |
42 #if defined(WEBRTC_LINUX) | 42 #if defined(WEBRTC_LINUX) |
43 #include <linux/netlink.h> | 43 #include <linux/netlink.h> |
44 #include <linux/rtnetlink.h> | 44 #include <linux/rtnetlink.h> |
45 #endif | 45 #endif |
46 | 46 |
47 #include "webrtc/common_types.h" | 47 #include "webrtc/common_types.h" |
48 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 48 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
49 #include "webrtc/system_wrappers/interface/rw_lock_wrapper.h" | 49 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" |
50 #include "webrtc/system_wrappers/interface/trace.h" | 50 #include "webrtc/system_wrappers/include/trace.h" |
51 #include "webrtc/test/channel_transport/udp_socket_manager_wrapper.h" | 51 #include "webrtc/test/channel_transport/udp_socket_manager_wrapper.h" |
52 #include "webrtc/typedefs.h" | 52 #include "webrtc/typedefs.h" |
53 | 53 |
54 #if defined(WEBRTC_LINUX) || defined(WEBRTC_MAC) | 54 #if defined(WEBRTC_LINUX) || defined(WEBRTC_MAC) |
55 #define GetLastError() errno | 55 #define GetLastError() errno |
56 | 56 |
57 #define IFRSIZE ((int)(size * sizeof (struct ifreq))) | 57 #define IFRSIZE ((int)(size * sizeof (struct ifreq))) |
58 | 58 |
59 #define NLMSG_OK_NO_WARNING(nlh,len) \ | 59 #define NLMSG_OK_NO_WARNING(nlh,len) \ |
60 ((len) >= (int)sizeof(struct nlmsghdr) && \ | 60 ((len) >= (int)sizeof(struct nlmsghdr) && \ |
(...skipping 2924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2985 if (nDots != 3 || !allUnder256) | 2985 if (nDots != 3 || !allUnder256) |
2986 { | 2986 { |
2987 return false; | 2987 return false; |
2988 } | 2988 } |
2989 } | 2989 } |
2990 return true; | 2990 return true; |
2991 } | 2991 } |
2992 | 2992 |
2993 } // namespace test | 2993 } // namespace test |
2994 } // namespace webrtc | 2994 } // namespace webrtc |
OLD | NEW |