Home
last modified time | relevance | path

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

/external/ltp/testcases/lib/
Dtst_net_vars.c443 static void check_prefix_range(unsigned int prefix, int is_ipv6, int is_lhost) in check_prefix_range() argument
445 unsigned int base_prefix = is_ipv6 ? BASE_IPV6_PREFIX : in check_prefix_range()
447 unsigned int max_prefix = is_ipv6 ? MAX_IPV6_PREFIX : MAX_IPV4_PREFIX; in check_prefix_range()
449 if (prefix < base_prefix || (is_ipv6 && prefix == 128) || in check_prefix_range()
450 (!is_ipv6 && prefix == 32)) in check_prefix_range()
453 prefix, is_ipv6 ? "IPv6" : "IPv4", in check_prefix_range()
454 is_ipv6 ? in check_prefix_range()
489 static int round_down_prefix(unsigned int prefix, int is_ipv6) in round_down_prefix() argument
491 unsigned int base_prefix = is_ipv6 ? BASE_IPV6_PREFIX : in round_down_prefix()
548 static void print_vars(int is_ipv6) in print_vars() argument
[all …]
Dtst_net_ip_prefix.c51 int is_ipv6, is_rhost = 0, prefix; in main() local
65 is_ipv6 = !!strchr(ip_str, ':'); in main()
70 prefix = get_prefix(ip_str, is_ipv6); in main()
72 prefix = is_ipv6 ? DEFAULT_IPV6_PREFIX : DEFAULT_IPV4_PREFIX; in main()
75 if (is_ipv6) in main()
80 if (is_ipv6) { in main()
Dtst_net_iface_prefix.c43 static int read_iface_prefix(const char *ip_str, int is_ipv6) in read_iface_prefix() argument
45 uint8_t family = is_ipv6 ? AF_INET6 : AF_INET; in read_iface_prefix()
109 int is_ipv6, is_rhost = 0; in main() local
123 is_ipv6 = !!strchr(ip_str, ':'); in main()
127 prefix = get_prefix(ip_str, is_ipv6); in main()
131 } else if (read_iface_prefix(ip_str, is_ipv6)) { in main()
138 if (is_ipv6) in main()
144 if (is_ipv6) in main()
/external/ltp/include/
Dtst_net.h106 static inline int get_prefix(const char *ip_str, int is_ipv6) in get_prefix() argument
117 if (!is_ipv6 && strchr(prefix_str, '.')) in get_prefix()
126 if (prefix < 0 || ((is_ipv6 && prefix > MAX_IPV6_PREFIX) || in get_prefix()
127 (!is_ipv6 && prefix > MAX_IPV4_PREFIX))) in get_prefix()
128 tst_brk_comment("bad %s prefix: %s", is_ipv6 ? "IPv6" : "IPv4", in get_prefix()
/external/tcpdump/
Dprint-olsr.c311 const u_char *pptr, u_int length, int is_ipv6) in olsr_print() argument
341 (is_ipv6 == 0) ? 4 : 6, in olsr_print()
362 if (is_ipv6) in olsr_print()
474 if (is_ipv6) { in olsr_print()
504 if (is_ipv6) { in olsr_print()
518 if (is_ipv6) in olsr_print()
524 is_ipv6 ? ip6addr_string(ndo, msg_data) : in olsr_print()
534 if (is_ipv6) in olsr_print()
630 if (is_ipv6) in olsr_print()
681 if (is_ipv6) in olsr_print()
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_xdp_noinline.c216 static inline __u64 calc_offset(bool is_ipv6, bool is_icmp) in calc_offset() argument
219 if (is_ipv6) { in calc_offset()
233 bool is_ipv6, struct packet_description *pckt) in parse_udp() argument
237 __u64 off = calc_offset(is_ipv6, is_icmp); in parse_udp()
255 bool is_ipv6, struct packet_description *pckt) in parse_tcp() argument
259 __u64 off = calc_offset(is_ipv6, is_icmp); in parse_tcp()
551 bool is_ipv6, void *lru_map) in get_packet_dst() argument
554 bool hash_16bytes = is_ipv6; in get_packet_dst()
692 bool is_ipv6, struct xdp_md *xdp) in process_packet() argument
712 if (is_ipv6) in process_packet()
[all …]
Dtest_l4lb_noinline.c216 bool is_ipv6) in get_packet_dst() argument
218 __u32 hash = get_packet_hash(pckt, is_ipv6); in get_packet_dst()
325 bool is_ipv6, struct __sk_buff *skb) in process_packet() argument
349 if (is_ipv6) { in process_packet()
406 if (is_ipv6) in process_packet()
425 if (!get_packet_dst(&dst, &pckt, vip_info, is_ipv6)) in process_packet()
Dtest_l4lb.c220 bool is_ipv6) in get_packet_dst() argument
222 __u32 hash = get_packet_hash(pckt, is_ipv6) % RING_SIZE; in get_packet_dst()
325 bool is_ipv6, struct __sk_buff *skb) in process_packet() argument
349 if (is_ipv6) { in process_packet()
406 if (is_ipv6) in process_packet()
425 if (!get_packet_dst(&dst, &pckt, vip_info, is_ipv6)) in process_packet()
/external/usrsctp/fuzzer/
Dpcap2corpus.c54 int (*is_ipv6)(const void *); member
144 if (args->is_ipv6(bytes_in)) { in packet_handler()
225 args.is_ipv6 = loopback_is_ipv6; in main()
230 args.is_ipv6 = ethernet_is_ipv6; in main()
/external/llvm-project/lldb/unittests/Host/
DSocketTest.cpp18 bool is_ipv6; member
28 if (GetParam().is_ipv6) in HostSupportsProtocol()
238 return info.param.is_ipv6 ? "ipv6" : "ipv4"; in __anon5e4f723c0102()
/external/rust/crates/tokio/tests/
Dtcp_connect.rs41 assert!(addr.is_ipv6()); in connect_v6()
/external/libevent/
Devutil.c2145 int is_ipv6; in evutil_parse_sockaddr_port() local
2171 is_ipv6 = 1; in evutil_parse_sockaddr_port()
2173 is_ipv6 = 1; in evutil_parse_sockaddr_port()
2177 is_ipv6 = 0; in evutil_parse_sockaddr_port()
2188 is_ipv6 = 0; in evutil_parse_sockaddr_port()
2203 if (is_ipv6) in evutil_parse_sockaddr_port()
/external/python/asn1crypto/asn1crypto/
Dx509.py2893 is_ipv6 = encoded_domain_ip.find(':') != -1
2894 is_ipv4 = not is_ipv6 and re.match('^\\d+\\.\\d+\\.\\d+\\.\\d+$', encoded_domain_ip)
2895 is_domain = not is_ipv6 and not is_ipv4