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 |
11 #include "webrtc/test/channel_transport/udp_transport_impl.h" | 11 #include "webrtc/voice_engine/test/channel_transport/udp_transport_impl.h" |
12 | 12 |
13 #include <stdio.h> | 13 #include <stdio.h> |
14 #include <stdlib.h> | 14 #include <stdlib.h> |
15 #include <string.h> | 15 #include <string.h> |
16 #include <time.h> | 16 #include <time.h> |
17 | 17 |
18 #if defined(_WIN32) | 18 #if defined(_WIN32) |
19 #include <winsock2.h> | 19 #include <winsock2.h> |
20 #include <ws2tcpip.h> | 20 #include <ws2tcpip.h> |
21 #elif defined(WEBRTC_LINUX) || defined(WEBRTC_MAC) | 21 #elif defined(WEBRTC_LINUX) || defined(WEBRTC_MAC) |
(...skipping 19 matching lines...) Expand all Loading... |
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/include/critical_section_wrapper.h" | 48 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
49 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" | 49 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" |
50 #include "webrtc/system_wrappers/include/trace.h" | 50 #include "webrtc/system_wrappers/include/trace.h" |
51 #include "webrtc/test/channel_transport/udp_socket_manager_wrapper.h" | 51 #include "webrtc/voice_engine/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) && \ |
61 (int)(nlh)->nlmsg_len >= (int)sizeof(struct nlmsghdr) && \ | 61 (int)(nlh)->nlmsg_len >= (int)sizeof(struct nlmsghdr) && \ |
(...skipping 2934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2996 if (nDots != 3 || !allUnder256) | 2996 if (nDots != 3 || !allUnder256) |
2997 { | 2997 { |
2998 return false; | 2998 return false; |
2999 } | 2999 } |
3000 } | 3000 } |
3001 return true; | 3001 return true; |
3002 } | 3002 } |
3003 | 3003 |
3004 } // namespace test | 3004 } // namespace test |
3005 } // namespace webrtc | 3005 } // namespace webrtc |
OLD | NEW |