HomeSort by relevance Sort by last modified time
    Searched full:is_ipv6 (Results 1 - 9 of 9) sorted by null

  /external/ltp/testcases/lib/
tst_net_ip_prefix.c 63 int is_ipv6, is_rhost = 0, prefix; local
77 is_ipv6 = !!strchr(ip_str, ':');
82 prefix = get_prefix(ip_str, is_ipv6);
84 prefix = is_ipv6 ? DEFAULT_IPV6_PREFIX : DEFAULT_IPV4_PREFIX;
87 if (is_ipv6)
92 if (is_ipv6) {
tst_net_vars.c 455 static void check_prefix_range(unsigned int prefix, int is_ipv6, int is_lhost)
457 unsigned int base_prefix = is_ipv6 ? BASE_IPV6_PREFIX :
459 unsigned int max_prefix = is_ipv6 ? MAX_IPV6_PREFIX : MAX_IPV4_PREFIX;
461 if (prefix < base_prefix || (is_ipv6 && prefix == 128) ||
462 (!is_ipv6 && prefix == 32))
465 prefix, is_ipv6 ? "IPv6" : "IPv4",
466 is_ipv6 ?
505 static int round_down_prefix(unsigned int prefix, int is_ipv6)
507 unsigned int base_prefix = is_ipv6 ? BASE_IPV6_PREFIX :
564 static void print_vars(int is_ipv6)
590 int is_ipv6, lprefix, rprefix, tmp; local
    [all...]
tst_net_iface_prefix.c 55 static int read_iface_prefix(const char *ip_str, int is_ipv6)
57 uint8_t family = is_ipv6 ? AF_INET6 : AF_INET;
121 int is_ipv6, is_rhost = 0; local
135 is_ipv6 = !!strchr(ip_str, ':');
139 prefix = get_prefix(ip_str, is_ipv6);
143 } else if (read_iface_prefix(ip_str, is_ipv6)) {
150 if (is_ipv6)
155 if (is_ipv6) {
  /external/ltp/include/
tst_net.h 115 static int get_prefix(const char *ip_str, int is_ipv6)
126 if (!is_ipv6 && strchr(prefix_str, '.'))
135 if (prefix < 0 || ((is_ipv6 && prefix > MAX_IPV6_PREFIX) ||
136 (!is_ipv6 && prefix > MAX_IPV4_PREFIX)))
137 tst_brk_comment("bad %s prefix: %s", is_ipv6 ? "IPv6" : "IPv4",
  /system/extras/multinetwork/
common.cpp 123 const bool is_ipv6 = (sa->sa_family == AF_INET6); local
126 getnameinfo(sa, is_ipv6 ? sizeof(sockaddr_in6) : sizeof(sockaddr_in),
134 return (is_ipv6 ? "[" : "") + std::string(host) + (is_ipv6 ? "]:" : ":") + std::string(port);
  /external/tcpdump/
print-olsr.c 311 const u_char *pptr, u_int length, int is_ipv6)
341 (is_ipv6 == 0) ? 4 : 6,
362 if (is_ipv6)
393 else /* (!is_ipv6) */
474 if (is_ipv6) {
504 if (is_ipv6) {
518 if (is_ipv6)
524 is_ipv6 ? ip6addr_string(ndo, msg_data) :
534 if (is_ipv6)
630 if (is_ipv6)
    [all...]
  /external/linux-kselftest/tools/testing/selftests/bpf/
test_l4lb.c 220 bool is_ipv6)
222 __u32 hash = get_packet_hash(pckt, is_ipv6) % RING_SIZE;
325 bool is_ipv6, struct __sk_buff *skb)
349 if (is_ipv6) {
406 if (is_ipv6)
425 if (!get_packet_dst(&dst, &pckt, vip_info, is_ipv6))
  /external/fio/engines/
net.c 223 static inline int is_ipv6(struct netio_options *o) function
538 if (is_ipv6(o)) {
602 if (!is_ipv6(o)) {
770 if (is_ipv6(o)) {
890 if (is_ipv6(o)) {
925 if (is_ipv6(o)) {
959 if (is_ipv6(o)) {
1030 if (is_ipv6(o))
1074 if (is_ipv6(o)) {
1088 if (is_ipv6(o))
    [all...]
  /external/libevent/
evutil.c 2076 int is_ipv6; local
    [all...]

Completed in 166 milliseconds