Home
last modified time | relevance | path

Searched refs:ipv6 (Results 1 – 25 of 262) sorted by relevance

1234567891011

/external/iptables/iptables/
Dnft-ipv6.c35 if (cs->fw6.ipv6.iniface[0] != '\0') { in nft_ipv6_add()
36 op = nft_invflags2cmp(cs->fw6.ipv6.invflags, IPT_INV_VIA_IN); in nft_ipv6_add()
37 add_iniface(r, cs->fw6.ipv6.iniface, op); in nft_ipv6_add()
40 if (cs->fw6.ipv6.outiface[0] != '\0') { in nft_ipv6_add()
41 op = nft_invflags2cmp(cs->fw6.ipv6.invflags, IPT_INV_VIA_OUT); in nft_ipv6_add()
42 add_outiface(r, cs->fw6.ipv6.outiface, op); in nft_ipv6_add()
45 if (cs->fw6.ipv6.proto != 0) { in nft_ipv6_add()
46 op = nft_invflags2cmp(cs->fw6.ipv6.invflags, XT_INV_PROTO); in nft_ipv6_add()
47 add_l4proto(r, cs->fw6.ipv6.proto, op); in nft_ipv6_add()
50 if (!IN6_IS_ADDR_UNSPECIFIED(&cs->fw6.ipv6.src) || in nft_ipv6_add()
[all …]
Dip6tables.c406 fputc(fw->ipv6.invflags & XT_INV_PROTO ? '!' : ' ', stdout); in print_firewall()
408 const char *pname = proto_to_name(fw->ipv6.proto, format&FMT_NUMERIC); in print_firewall()
412 printf(FMT("%-5hu", "%hu "), fw->ipv6.proto); in print_firewall()
423 print_ifaces(fw->ipv6.iniface, fw->ipv6.outiface, in print_firewall()
424 fw->ipv6.invflags, format); in print_firewall()
432 if(fw->ipv6.flags & IP6T_F_GOTO) in print_firewall()
436 IP6T_MATCH_ITERATE(fw, print_match, &fw->ipv6, format & FMT_NUMERIC); in print_firewall()
445 tg->print(&fw->ipv6, t, format & FMT_NUMERIC); in print_firewall()
482 fw->ipv6.src = saddrs[i]; in append_entry()
483 fw->ipv6.smsk = smasks[i]; in append_entry()
[all …]
/external/webrtc/rtc_base/
Dwin32_unittest.cc30 IPAddress ipv6; in TEST_F() local
34 ASSERT_TRUE(IPFromString("2a00:8a00:a000:1190:0000:0001:000:252", &ipv6)); in TEST_F()
35 EXPECT_EQ("2a00:8a00:a000:1190::1:0:252", ipv6.ToString()); in TEST_F()
38 ASSERT_TRUE(IPFromString("0:0:0:0:0:0:0:1", &ipv6)); in TEST_F()
39 EXPECT_EQ("::1", ipv6.ToString()); in TEST_F()
42 ASSERT_TRUE(IPFromString("fe80:0:0:0:2aa:ff:fe9a:4ca2", &ipv6)); in TEST_F()
43 EXPECT_EQ("fe80::2aa:ff:fe9a:4ca2", ipv6.ToString()); in TEST_F()
46 ASSERT_TRUE(IPFromString("2a00:8a00:a000:1190:0000:0001:000:00", &ipv6)); in TEST_F()
47 EXPECT_EQ("2a00:8a00:a000:1190:0:1::", ipv6.ToString()); in TEST_F()
50 ASSERT_TRUE(IPFromString("0:0:000:1190:0000:0001:000:00", &ipv6)); in TEST_F()
[all …]
/external/iptables/libiptc/
Dlibip6tc.c142 inet_ntop(AF_INET6, &e->ipv6.src, buf, sizeof buf); in dump_entry()
145 len = ipv6_prefix_length(&e->ipv6.smsk); in dump_entry()
149 inet_ntop(AF_INET6, &e->ipv6.smsk, buf, sizeof buf); in dump_entry()
155 inet_ntop(AF_INET6, &e->ipv6.dst, buf, sizeof buf); in dump_entry()
158 len = ipv6_prefix_length(&e->ipv6.dmsk); in dump_entry()
162 inet_ntop(AF_INET6, &e->ipv6.dmsk, buf, sizeof buf); in dump_entry()
167 printf("Interface: `%s'/", e->ipv6.iniface); in dump_entry()
169 printf("%c", e->ipv6.iniface_mask[i] ? 'X' : '.'); in dump_entry()
170 printf("to `%s'/", e->ipv6.outiface); in dump_entry()
172 printf("%c", e->ipv6.outiface_mask[i] ? 'X' : '.'); in dump_entry()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dconnect6_prog.c37 memset(&tuple.ipv6.saddr, 0, sizeof(tuple.ipv6.saddr)); in connect_v6_prog()
38 memset(&tuple.ipv6.sport, 0, sizeof(tuple.ipv6.sport)); in connect_v6_prog()
40 tuple.ipv6.daddr[0] = bpf_htonl(DST_REWRITE_IP6_0); in connect_v6_prog()
41 tuple.ipv6.daddr[1] = bpf_htonl(DST_REWRITE_IP6_1); in connect_v6_prog()
42 tuple.ipv6.daddr[2] = bpf_htonl(DST_REWRITE_IP6_2); in connect_v6_prog()
43 tuple.ipv6.daddr[3] = bpf_htonl(DST_REWRITE_IP6_3); in connect_v6_prog()
45 tuple.ipv6.dport = bpf_htons(DST_REWRITE_PORT6); in connect_v6_prog()
50 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv6), in connect_v6_prog()
53 sk = bpf_sk_lookup_udp(ctx, &tuple, sizeof(tuple.ipv6), in connect_v6_prog()
59 if (sk->src_ip6[0] != tuple.ipv6.daddr[0] || in connect_v6_prog()
[all …]
Dtest_tcp_check_syncookie_kern.c109 memcpy(tup.ipv6.saddr, &ipv6h->saddr, sizeof(tup.ipv6.saddr)); in check_syncookie()
110 memcpy(tup.ipv6.daddr, &ipv6h->daddr, sizeof(tup.ipv6.daddr)); in check_syncookie()
111 tup.ipv6.sport = tcph->source; in check_syncookie()
112 tup.ipv6.dport = tcph->dest; in check_syncookie()
114 sk = bpf_skc_lookup_tcp(ctx, &tup, sizeof(tup.ipv6), in check_syncookie()
/external/libcups/scheduler/
Dnetwork.c244 (lis->address.ipv6.sin6_addr.s6_addr[0] & in cupsdNetIFUpdate()
245 temp->mask.ipv6.sin6_addr.s6_addr[0]) == in cupsdNetIFUpdate()
246 (temp->address.ipv6.sin6_addr.s6_addr[0] & in cupsdNetIFUpdate()
247 temp->mask.ipv6.sin6_addr.s6_addr[0]) && in cupsdNetIFUpdate()
248 (lis->address.ipv6.sin6_addr.s6_addr[1] & in cupsdNetIFUpdate()
249 temp->mask.ipv6.sin6_addr.s6_addr[1]) == in cupsdNetIFUpdate()
250 (temp->address.ipv6.sin6_addr.s6_addr[1] & in cupsdNetIFUpdate()
251 temp->mask.ipv6.sin6_addr.s6_addr[1]) && in cupsdNetIFUpdate()
252 (lis->address.ipv6.sin6_addr.s6_addr[2] & in cupsdNetIFUpdate()
253 temp->mask.ipv6.sin6_addr.s6_addr[2]) == in cupsdNetIFUpdate()
[all …]
/external/libcups/cups/
Dhttp-addrlist.c546 char ipv6[64], /* IPv6 address */ in httpAddrGetList() local
573 strlcpy(ipv6, hostname + 4, sizeof(ipv6)); in httpAddrGetList()
574 if ((ipv6len = (int)strlen(ipv6) - 1) >= 0 && ipv6[ipv6len] == ']') in httpAddrGetList()
576 ipv6[ipv6len] = '\0'; in httpAddrGetList()
577 hostname = ipv6; in httpAddrGetList()
583 if ((ipv6zone = strrchr(ipv6, '+')) != NULL) in httpAddrGetList()
593 strlcpy(ipv6, hostname + 1, sizeof(ipv6)); in httpAddrGetList()
594 if ((ipv6len = (int)strlen(ipv6) - 1) >= 0 && ipv6[ipv6len] == ']') in httpAddrGetList()
596 ipv6[ipv6len] = '\0'; in httpAddrGetList()
597 hostname = ipv6; in httpAddrGetList()
[all …]
Dhttp-addr.c43 IN6_IS_ADDR_UNSPECIFIED(&(addr->ipv6.sin6_addr))) in httpAddrAny()
112 return (!memcmp(&(addr1->ipv6.sin6_addr), &(addr2->ipv6.sin6_addr), 16)); in httpAddrEqual()
133 return (sizeof(addr->ipv6)); in httpAddrLength()
291 IN6_IS_ADDR_LOOPBACK(&(addr->ipv6.sin6_addr))) in httpAddrLocalhost()
404 host = gethostbyaddr((char *)&(addr->ipv6.sin6_addr), in httpAddrLookup()
460 return (ntohs(addr->ipv6.sin6_port)); in httpAddrPort()
482 addr->ipv6.sin6_port = htons(port); in _httpAddrSetPort()
568 for (sptr = temps, i = 0; i < 4 && addr->ipv6.sin6_addr.s6_addr32[i]; i ++) in httpAddrString()
570 temp = ntohl(addr->ipv6.sin6_addr.s6_addr32[i]); in httpAddrString()
578 if (temp || i == 3 || addr->ipv6.sin6_addr.s6_addr32[i + 1]) in httpAddrString()
[all …]
/external/ltp/testcases/network/stress/multicast/grp-operation/
Dmcast-lib.sh38 SYSCTL_ALL_FORCE_MLD_VERSION=$(sysctl -b net.ipv6.conf.all.force_mld_version)
39 SYSCTL_FORCE_MLD_VERSION=$(sysctl -b net.ipv6.conf.$(tst_iface).force_mld_version)
40 SYSCTL_MLD_MAX_MSF=$(sysctl -b net.ipv6.mld_max_msf)
42 ROD sysctl -q -w net.ipv6.conf.all.force_mld_version=0
43 ROD sysctl -q -w net.ipv6.conf.$(tst_iface).force_mld_version=0
44 ROD sysctl -q -w net.ipv6.mld_max_msf=$default_mld_max_msf
72 …[ -n "$SYSCTL_ALL_FORCE_MLD_VERSION" ] && sysctl -q -w net.ipv6.conf.all.force_mld_version=$SYSCTL…
73 …[ -n "$SYSCTL_FORCE_MLD_VERSION" ] && sysctl -q -w net.ipv6.conf.$(tst_iface).force_mld_version=$S…
74 [ -n "$SYSCTL_MLD_MAX_MSF" ] && sysctl -q -w net.ipv6.mld_max_msf=$SYSCTL_MLD_MAX_MSF
/external/linux-kselftest/tools/testing/selftests/net/
Dip_defrag.c135 int offset, bool ipv6) in send_fragment() argument
140 uint8_t *frag_start = ipv6 ? ip_frame + IP6_HLEN + FRAG_HLEN : in send_fragment()
149 if (ipv6) in send_fragment()
156 if (ipv6) { in send_fragment()
204 socklen_t alen, bool ipv6) in send_udp_frags() argument
219 if (ipv6) { in send_udp_frags()
248 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
259 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
264 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
269 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
[all …]
Dreuseaddr_conflict.c21 int open_port(int ipv6, int any) in open_port() argument
29 int family = ipv6 ? AF_INET6 : AF_INET; in open_port()
43 if (ipv6) { in open_port()
56 if (ipv6 && setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&v6only, in open_port()
Dip_defrag.sh19 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_high_thresh=9000000 >/dev/null 2>&1
20 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_low_thresh=7000000 >/dev/null 2>&1
21 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_time=1 >/dev/null 2>&1
28 ip netns exec "${NETNS}" sysctl -w net.ipv6.route.max_size=65536 >/dev/null 2>&1
/external/ltp/runtest/
Dcontainers29 netns_breakns_ns_exec_ipv6_netlink netns_breakns.sh ns_exec ipv6 netlink
31 netns_breakns_ns_exec_ipv6_ioctl netns_breakns.sh ns_exec ipv6 ioctl
33 netns_breakns_ip_ipv6_netlink netns_breakns.sh ip ipv6 netlink
35 netns_breakns_ip_ipv6_ioctl netns_breakns.sh ip ipv6 ioctl
37 netns_comm_ns_exec_ipv6_netlink netns_comm.sh ns_exec ipv6 netlink
39 netns_comm_ns_exec_ipv6_ioctl netns_comm.sh ns_exec ipv6 ioctl
41 netns_comm_ip_ipv6_netlink netns_comm.sh ip ipv6 netlink
43 netns_comm_ip_ipv6_ioctl netns_comm.sh ip ipv6 ioctl
/external/iptables/extensions/
Dlibebt_ip6.t10 -p IPv6 --ip6-proto ipv6-icmp --ip6-icmp-type echo-request -j CONTINUE;=;OK
11 -p IPv6 --ip6-proto ipv6-icmp --ip6-icmp-type echo-request;=;OK
12 -p ip6 --ip6-protocol icmpv6 --ip6-icmp-type 1/1;-p IPv6 --ip6-proto ipv6-icmp --ip6-icmp-type comm…
13 -p IPv6 --ip6-proto ipv6-icmp --ip6-icmp-type ! 1:10/0:255;=;OK
14 --ip6-proto ipv6-icmp ! --ip6-icmp-type 1:10/0:255;=;FAIL
15 ! -p IPv6 --ip6-proto ipv6-icmp ! --ip6-icmp-type 1:10/0:255;=;FAIL
Dlibip6t_icmp6.t3 -p ipv6-icmp -m icmp6 --icmpv6-type 1/0;=;OK
4 -p ipv6-icmp -m icmp6 --icmpv6-type 2;=;OK
6 -p ipv6-icmp -m icmp6 --icmpv6-type no-route --icmpv6-type packet-too-big;;FAIL
/external/grpc-grpc/test/core/client_channel/resolvers/
Dsockaddr_resolver_test.cc94 grpc_core::ResolverFactory* ipv6 = in main() local
105 test_fails(ipv6, "ipv6:["); in main()
106 test_fails(ipv6, "ipv6:[::]"); in main()
107 test_succeeds(ipv6, "ipv6:[::]:1234"); in main()
108 test_fails(ipv6, "ipv6:[::]:123456"); in main()
109 test_fails(ipv6, "ipv6:www.google.com"); in main()
/external/bcc/tools/
Ddcsnoop_example.txt22 0.003245 1643 snmpd M ipv6/neigh/eth0/retrans_time_ms
60 0.015900 1643 snmpd R proc/sys/net/ipv6/conf/lo/forwarding
61 0.015901 1643 snmpd R sys/net/ipv6/conf/lo/forwarding
62 0.015901 1643 snmpd R net/ipv6/conf/lo/forwarding
63 0.015902 1643 snmpd R ipv6/conf/lo/forwarding
69 0.015937 1643 snmpd R proc/sys/net/ipv6/neigh/lo/base_reachable_time_ms
70 0.015937 1643 snmpd R sys/net/ipv6/neigh/lo/base_reachable_time_ms
71 0.015938 1643 snmpd R net/ipv6/neigh/lo/base_reachable_time_ms
72 0.015939 1643 snmpd R ipv6/neigh/lo/base_reachable_time_ms
/external/libwebsockets/lib/core-net/
Dnetwork.c32 int ipv6 = 0; in interface_to_sa() local
35 ipv6 = LWS_IPV6_ENABLED(vh); in interface_to_sa()
39 return lws_interface_to_sa(ipv6, ifname, addr, addrlen); in interface_to_sa()
581 int sects = 0, ipv6 = !!strchr(ads, ':'), skip_point = -1, dm = 0; in lws_parse_numeric_address() local
589 if (!ipv6 && ts.len < 7) in lws_parse_numeric_address()
592 if (ipv6 && ts.len < 2) in lws_parse_numeric_address()
595 if (!ipv6 && max_len < 4) in lws_parse_numeric_address()
598 if (ipv6 && max_len < 16) in lws_parse_numeric_address()
601 if (ipv6) in lws_parse_numeric_address()
609 if (ipv6) { in lws_parse_numeric_address()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/ip/impl/
Daddress.ipp43 : type_(ipv6),
89 type_ = ipv6;
107 if (type_ != ipv6)
117 if (type_ == ipv6)
124 if (type_ == ipv6)
144 tmp.type_ = ipv6;
198 if (a1.type_ == address::ipv6)
209 if (a1.type_ == address::ipv6)
/external/linux-kselftest/tools/testing/selftests/drivers/net/mlxsw/
Done_armed_router.sh177 tc filter add dev $swp1 ingress protocol ipv6 pref 1 handle 101 flower \
181 tc filter add dev $swp2 egress protocol ipv6 pref 1 handle 101 flower \
185 tc filter add dev $swp2 egress protocol ipv6 pref 2 handle 102 flower \
213 tc filter del dev $swp2 egress protocol ipv6 pref 2 handle 102 flower
214 tc filter del dev $swp2 egress protocol ipv6 pref 1 handle 101 flower
215 tc filter del dev $swp1 ingress protocol ipv6 pref 1 handle 101 flower
230 sysctl_set net.ipv6.conf.all.accept_redirects 0
245 sysctl_restore net.ipv6.conf.all.accept_redirects
/external/android-clat/
DBUGS3 - assumes the handset has its own (routed) /64 ipv6 subnet
4 - assumes the /128 ipv6 subnet it generates can use the nat64 gateway
5 …- assumes the nat64 gateway has the ipv4 address in the last 32 bits of the ipv6 address (that it …
/external/linux-kselftest/tools/testing/selftests/net/forwarding/
Drouter_multicast.sh280 tc filter add dev $h2 ingress protocol ipv6 pref 1 handle 122 flower \
282 tc filter add dev $h3 ingress protocol ipv6 pref 1 handle 133 flower \
306 tc filter del dev $h3 ingress protocol ipv6 pref 1 handle 133 flower
307 tc filter del dev $h2 ingress protocol ipv6 pref 1 handle 122 flower
368 tc filter add dev $h1 ingress protocol ipv6 pref 1 handle 1 flower \
370 tc filter add dev $h2 ingress protocol ipv6 pref 1 handle 1 flower \
372 tc filter add dev $h3 ingress protocol ipv6 pref 1 handle 1 flower \
374 tc filter add dev $rp3 ingress protocol ipv6 pref 1 handle 1 flower \
401 tc filter del dev $rp3 ingress protocol ipv6 pref 1 handle 1 flower
402 tc filter del dev $h3 ingress protocol ipv6 pref 1 handle 1 flower
[all …]
/external/curl/tests/data/
Dtest12034 GOPHER-ipv6
23 ipv6
26 gopher-ipv6
/external/libcups/backend/
Dsnmp.c134 static void scan_devices(int ipv4, int ipv6);
173 ipv6; /* SNMP IPv6 socket */ in main() local
220 if ((ipv6 = _cupsSNMPOpen(AF_INET6)) < 0) in main()
223 ipv6 = -1; in main()
240 scan_devices(ipv4, ipv6); in main()
247 if (ipv6 >= 0) in main()
248 _cupsSNMPClose(ipv6); in main()
1146 int ipv6) /* I - SNMP IPv6 socket */ in scan_devices() argument
1203 fd = ipv6; in scan_devices()
1233 if (ipv6 >= 0) in scan_devices()
[all …]

1234567891011