Home
last modified time | relevance | path

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

12

/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()
Dtest_sk_lookup_kern.c74 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in bpf_sk_lookup_test0()
/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
Dfib_nexthop_multiprefix.sh81 ip netns exec ${ns} sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1
84 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=0
88 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=1
Dfib_nexthops.sh130 ip netns exec ${n} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
131 ip netns exec ${n} sysctl -qw net.ipv6.conf.all.forwarding=1
132 ip netns exec ${n} sysctl -qw net.ipv6.conf.default.forwarding=1
133 ip netns exec ${n} sysctl -qw net.ipv6.conf.default.ignore_routes_with_linkdown=1
134 ip netns exec ${n} sysctl -qw net.ipv6.conf.all.accept_dad=0
135 ip netns exec ${n} sysctl -qw net.ipv6.conf.default.accept_dad=0
Dicmp_redirect.sh177 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=0
178 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.accept_redirects=1
179 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1
184 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=1
185 ip netns exec $ns sysctl -q -w net.ipv6.route.mtu_expires=10
Dl2tp.sh97 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
98 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.forwarding=1
99 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.forwarding=1
100 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.accept_dad=0
/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
Dblackhole_routes.sh146 tc filter add dev $rp1 ingress protocol ipv6 pref 1 handle 101 flower \
161 tc filter del dev $rp1 ingress protocol ipv6 pref 1 handle 101 flower
Dtc_flower_scale.sh78 prot ipv6 \
/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 …]
Dmirror_gre.sh129 test_span_gre_mac gt6 ingress ipv6 "mirror to ip6gretap"
130 test_span_gre_mac gt6 egress ipv6 "mirror to ip6gretap"
Dmirror_gre_changes.sh41 sysctl_set net.ipv6.conf.$swp3.keep_addr_on_down 1
60 sysctl_restore net.ipv6.conf.$swp3.keep_addr_on_down
211 test_span_gre_ttl gt6 ip6gretap ipv6 "mirror to ip6gretap"
Dip6gre_inner_v6_multipath.sh259 sysctl_set net.ipv6.fib_multipath_hash_policy 2
283 sysctl_restore net.ipv6.fib_multipath_hash_policy
Dip6gre_inner_v4_multipath.sh259 sysctl_set net.ipv6.fib_multipath_hash_policy 2
282 sysctl_restore net.ipv6.fib_multipath_hash_policy
/tools/testing/selftests/bpf/
Dtest_lwt_seg6local.sh130 ip netns exec ns1 sysctl net.ipv6.conf.all.forwarding=1 > /dev/null
131 ip netns exec ns2 sysctl net.ipv6.conf.all.forwarding=1 > /dev/null
132 ip netns exec ns3 sysctl net.ipv6.conf.all.forwarding=1 > /dev/null
133 ip netns exec ns4 sysctl net.ipv6.conf.all.forwarding=1 > /dev/null
134 ip netns exec ns5 sysctl net.ipv6.conf.all.forwarding=1 > /dev/null
136 ip netns exec ns6 sysctl net.ipv6.conf.all.seg6_enabled=1 > /dev/null
137 ip netns exec ns6 sysctl net.ipv6.conf.lo.seg6_enabled=1 > /dev/null
138 ip netns exec ns6 sysctl net.ipv6.conf.veth10.seg6_enabled=1 > /dev/null
Dtest_tc_tunnel.sh103 $0 ipv6 ip6tnl none 100
106 $0 ipv6 sit none 100
113 $0 ipv6 ip6gre $mac 100
119 $0 ipv6 ip6gre $mac 2000
125 $0 ipv6 ip6udp $mac 100
131 $0 ipv6 ip6udp $mac 2000
Dtest_flow_dissector.sh108 tc filter add dev lo parent ffff: protocol ipv6 pref 1337 flower ip_proto \
/tools/usb/usbip/src/
Dusbipd.c491 static int do_standalone_mode(int daemonize, int ipv4, int ipv6) in do_standalone_mode() argument
523 if (ipv4 && ipv6) in do_standalone_mode()
609 int ipv4 = 0, ipv6 = 0; in main() local
633 ipv6 = 1; in main()
663 if (!ipv4 && !ipv6) in main()
664 ipv4 = ipv6 = 1; in main()
668 rc = do_standalone_mode(daemonize, ipv4, ipv6); in main()
/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh595 tc filter add dev $h2 ingress protocol ipv6 pref 1 handle 101 flower \
597 tc filter add dev $h2 ingress protocol ipv6 pref 2 handle 102 flower \
599 tc filter add dev $h2 ingress protocol ipv6 pref 3 handle 103 flower \
641 tc filter del dev $h2 ingress protocol ipv6 pref 3 handle 103 flower
642 tc filter del dev $h2 ingress protocol ipv6 pref 2 handle 102 flower
643 tc filter del dev $h2 ingress protocol ipv6 pref 1 handle 101 flower
764 tc filter add dev $h2 ingress protocol ipv6 pref 1 handle 101 flower \
766 tc filter add dev $h2 ingress protocol ipv6 pref 2 handle 102 flower \
768 tc filter add dev $h2 ingress protocol ipv6 pref 3 handle 103 flower \
801 tc filter del dev $h2 ingress protocol ipv6 pref 3 handle 103 flower
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c93 struct ipv6_pkt ipv6; member
127 .pkt.ipv6 = {
288 .pkt.ipv6 = {
310 .pkt.ipv6 = {
/tools/testing/selftests/netfilter/
Dconntrack_icmp_related.sh42 ipv6 () { function
93 ip -net nsclient$i addr add $(ipv6 $i)/64 dev $DEV

12