/third_party/ltp/testcases/lib/ |
D | tst_net_vars.c | 444 static void check_prefix_range(unsigned int prefix, int is_ipv6, int is_lhost) in check_prefix_range() argument 446 unsigned int base_prefix = is_ipv6 ? BASE_IPV6_PREFIX : in check_prefix_range() 448 unsigned int max_prefix = is_ipv6 ? MAX_IPV6_PREFIX : MAX_IPV4_PREFIX; in check_prefix_range() 450 if (prefix < base_prefix || (is_ipv6 && prefix == 128) || in check_prefix_range() 451 (!is_ipv6 && prefix == 32)) in check_prefix_range() 454 prefix, is_ipv6 ? "IPv6" : "IPv4", in check_prefix_range() 455 is_ipv6 ? in check_prefix_range() 490 static int round_down_prefix(unsigned int prefix, int is_ipv6) in round_down_prefix() argument 492 unsigned int base_prefix = is_ipv6 ? BASE_IPV6_PREFIX : in round_down_prefix() 549 static void print_vars(int is_ipv6) in print_vars() argument [all …]
|
D | tst_net_ip_prefix.c | 52 int is_ipv6, is_rhost = 0, prefix; in main() local 66 is_ipv6 = !!strchr(ip_str, ':'); in main() 71 prefix = tst_get_prefix(ip_str, is_ipv6); in main() 73 prefix = is_ipv6 ? DEFAULT_IPV6_PREFIX : DEFAULT_IPV4_PREFIX; in main() 76 if (is_ipv6) in main() 81 if (is_ipv6) { in main()
|
D | tst_net_iface_prefix.c | 44 static int read_iface_prefix(const char *ip_str, int is_ipv6) in read_iface_prefix() argument 46 uint8_t family = is_ipv6 ? AF_INET6 : AF_INET; in read_iface_prefix() 110 int is_ipv6, is_rhost = 0; in main() local 124 is_ipv6 = !!strchr(ip_str, ':'); in main() 128 prefix = tst_get_prefix(ip_str, is_ipv6); in main() 132 } else if (read_iface_prefix(ip_str, is_ipv6)) { in main() 139 if (is_ipv6) in main() 146 if (is_ipv6) in main()
|
/third_party/lwip/src/include/lwip/ |
D | ip_addr.h | 174 #define ip_addr_set_any(is_ipv6, ipaddr) do{if(is_ipv6){ \ argument 178 #define ip_addr_set_any_val(is_ipv6, ipaddr) do{if(is_ipv6){ \ argument 182 #define ip_addr_set_loopback(is_ipv6, ipaddr) do{if(is_ipv6){ \ argument 186 #define ip_addr_set_loopback_val(is_ipv6, ipaddr) do{if(is_ipv6){ \ argument 265 #define ip_addr_set_any_val(is_ipv6, ipaddr) ip_addr_set_any(is_ipv6, &(ipaddr)) argument 266 #define ip_addr_set_loopback_val(is_ipv6, ipaddr) ip_addr_set_loopback(is_ipv6, &(ipaddr)) argument 294 #define ip_addr_set_any(is_ipv6, ipaddr) ip4_addr_set_any(ipaddr) argument 295 #define ip_addr_set_loopback(is_ipv6, ipaddr) ip4_addr_set_loopback(ipaddr) argument 341 #define ip_addr_set_any(is_ipv6, ipaddr) ip6_addr_set_any(ipaddr) argument 342 #define ip_addr_set_loopback(is_ipv6, ipaddr) ip6_addr_set_loopback(ipaddr) argument
|
D | ip.h | 273 #define ip_debug_print(is_ipv6, p) ((is_ipv6) ? ip6_debug_print(p) : ip4_debug_print(p)) argument 293 #define ip_debug_print(is_ipv6, p) ip4_debug_print(p) argument 313 #define ip_debug_print(is_ipv6, p) ip6_debug_print(p) argument
|
/third_party/ltp/lib/ |
D | tst_net.c | 99 int tst_get_prefix(const char *ip_str, int is_ipv6) in tst_get_prefix() argument 110 if (!is_ipv6 && strchr(prefix_str, '.')) in tst_get_prefix() 119 if (prefix < 0 || ((is_ipv6 && prefix > MAX_IPV6_PREFIX) || in tst_get_prefix() 120 (!is_ipv6 && prefix > MAX_IPV4_PREFIX))) in tst_get_prefix() 121 tst_brk_comment("bad %s prefix: %s", is_ipv6 ? "IPv6" : "IPv4", in tst_get_prefix()
|
/third_party/ltp/testcases/network/stress/route/ |
D | route-change-netlink.c | 32 static unsigned int is_ipv6, max, prefix; variable 99 is_ipv6 = 1; in setup() 224 if (is_ipv6) { in rtnl_route() 235 if (is_ipv6) { in rtnl_route()
|
/third_party/ltp/include/ |
D | tst_private.h | 31 int tst_get_prefix(const char *ip_str, int is_ipv6);
|
/third_party/gstreamer/gstplugins_good/gst/rtsp/ |
D | gstrtspsrc.h | 120 gboolean is_ipv6; member
|
D | gstrtspsrc.c | 2112 stream->is_ipv6 = FALSE; in gst_rtspsrc_do_stream_connection() 2114 stream->is_ipv6 = TRUE; in gst_rtspsrc_do_stream_connection() 2572 if (stream->is_ipv6) in gst_rtspsrc_alloc_udp_ports()
|