Home
last modified time | relevance | path

Searched refs:is_ipv6 (Results 1 – 11 of 11) sorted by relevance

/third_party/ltp/testcases/lib/
Dtst_net_vars.c444 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 …]
Dtst_net_iface_prefix.c44 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()
Dtst_net_ip_prefix.c52 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()
/third_party/lwip/src/include/lwip/
Dip_addr.h174 #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
Dip.h307 #define ip_debug_print(is_ipv6, p) ((is_ipv6) ? ip6_debug_print(p) : ip4_debug_print(p)) argument
327 #define ip_debug_print(is_ipv6, p) ip4_debug_print(p) argument
347 #define ip_debug_print(is_ipv6, p) ip6_debug_print(p) argument
/third_party/ltp/lib/
Dtst_net.c101 int tst_get_prefix(const char *ip_str, int is_ipv6) in tst_get_prefix() argument
112 if (!is_ipv6 && strchr(prefix_str, '.')) in tst_get_prefix()
121 if (prefix < 0 || ((is_ipv6 && prefix > MAX_IPV6_PREFIX) || in tst_get_prefix()
122 (!is_ipv6 && prefix > MAX_IPV4_PREFIX))) in tst_get_prefix()
123 tst_brk_comment("bad %s prefix: %s", is_ipv6 ? "IPv6" : "IPv4", in tst_get_prefix()
/third_party/ltp/testcases/network/stress/route/
Droute-change-netlink.c30 static unsigned int is_ipv6, max, prefix; variable
97 is_ipv6 = 1; in setup()
222 if (is_ipv6) { in rtnl_route()
233 if (is_ipv6) { in rtnl_route()
/third_party/ltp/include/
Dtst_private.h31 int tst_get_prefix(const char *ip_str, int is_ipv6);
/third_party/rust/crates/rustix/src/net/
Daddr.rs275 pub const fn is_ipv6(&self) -> bool { in is_ipv6() method
Dip.rs433 pub const fn is_ipv6(&self) -> bool { in is_ipv6() method
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h71604 u8 is_ipv6: 1; member