/tools/testing/selftests/bpf/progs/ |
D | connect4_prog.c | 29 memset(&tuple.ipv4.saddr, 0, sizeof(tuple.ipv4.saddr)); in connect_v4_prog() 30 memset(&tuple.ipv4.sport, 0, sizeof(tuple.ipv4.sport)); in connect_v4_prog() 32 tuple.ipv4.daddr = bpf_htonl(DST_REWRITE_IP4); in connect_v4_prog() 33 tuple.ipv4.dport = bpf_htons(DST_REWRITE_PORT4); in connect_v4_prog() 38 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv4), in connect_v4_prog() 41 sk = bpf_sk_lookup_udp(ctx, &tuple, sizeof(tuple.ipv4), in connect_v4_prog() 47 if (sk->src_ip4 != tuple.ipv4.daddr || in connect_v4_prog()
|
D | test_sk_lookup_kern.c | 24 bool *ipv4) in get_tuple() argument 37 *ipv4 = true; in get_tuple() 46 *ipv4 = true; in get_tuple() 65 bool ipv4; in bpf_sk_lookup_test0() local 70 tuple = get_tuple(data, sizeof(*eth), data_end, eth->h_proto, &ipv4); in bpf_sk_lookup_test0() 74 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in bpf_sk_lookup_test0()
|
D | test_tcp_check_syncookie_kern.c | 77 tup.ipv4.saddr = ipv4h->saddr; in check_syncookie() 78 tup.ipv4.daddr = ipv4h->daddr; in check_syncookie() 79 tup.ipv4.sport = tcph->source; in check_syncookie() 80 tup.ipv4.dport = tcph->dest; in check_syncookie() 82 sk = bpf_skc_lookup_tcp(ctx, &tup, sizeof(tup.ipv4), in check_syncookie()
|
/tools/testing/selftests/net/ |
D | route_localnet.sh | 16 sysctl -w net.ipv4.conf.veth0.route_localnet=1 17 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.route_localnet=1 40 sysctl -w net.ipv4.conf.veth0.arp_announce=2 41 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_announce=2 57 sysctl -w net.ipv4.conf.veth0.arp_ignore=3 58 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_ignore=3
|
D | ip_defrag.sh | 17 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_high_thresh=9000000 >/dev/null 2>&1 18 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_low_thresh=7000000 >/dev/null 2>&1 19 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_time=1 >/dev/null 2>&1
|
D | fib_rule_tests.sh | 192 ip netns exec testns sysctl -w net.ipv4.ip_forward=1 193 ip netns exec testns sysctl -w net.ipv4.conf.$DEV.rp_filter=0 196 ip netns exec testns sysctl -w net.ipv4.ip_forward=0
|
D | tcp_fastopen_backup_key.sh | 15 ip netns exec "${NETNS}" sysctl -w net.ipv4.tcp_fastopen=3 \
|
D | fcnal-test.sh | 375 ip netns exec ${ns} sysctl -qw net.ipv4.ip_forward=1 640 set_sysctl net.ipv4.raw_l3mdev_accept=1 2>/dev/null 755 set_sysctl net.ipv4.raw_l3mdev_accept=0 2>/dev/null 758 set_sysctl net.ipv4.raw_l3mdev_accept=1 2>/dev/null 761 set_sysctl net.ipv4.ping_group_range='0 2147483647' 2>/dev/null 768 set_sysctl net.ipv4.ping_group_range='0 2147483647' 2>/dev/null 901 set_sysctl net.ipv4.tcp_l3mdev_accept=0 948 set_sysctl net.ipv4.tcp_l3mdev_accept=1 1065 set_sysctl net.ipv4.tcp_l3mdev_accept=0 1068 set_sysctl net.ipv4.tcp_l3mdev_accept=1 [all …]
|
D | icmp_redirect.sh | 176 h[12]) ip netns exec $ns sysctl -q -w net.ipv4.conf.all.accept_redirects=1 181 r[12]) ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=1 182 ip netns exec $ns sysctl -q -w net.ipv4.conf.all.send_redirects=1 183 ip netns exec $ns sysctl -q -w net.ipv4.conf.default.rp_filter=0 184 ip netns exec $ns sysctl -q -w net.ipv4.conf.all.rp_filter=0
|
/tools/testing/selftests/net/forwarding/ |
D | router_broadcast.sh | 146 sysctl_set net.ipv4.conf.all.bc_forwarding 0 147 sysctl_set net.ipv4.conf.$rp1.bc_forwarding 0 148 sysctl_set net.ipv4.conf.$rp2.bc_forwarding 0 153 sysctl_set net.ipv4.conf.all.bc_forwarding 1 154 sysctl_set net.ipv4.conf.$rp1.bc_forwarding 1 155 sysctl_set net.ipv4.conf.$rp2.bc_forwarding 1 160 sysctl_restore net.ipv4.conf.$rp2.bc_forwarding 161 sysctl_restore net.ipv4.conf.$rp1.bc_forwarding 162 sysctl_restore net.ipv4.conf.all.bc_forwarding 183 sysctl_set net.ipv4.icmp_echo_ignore_broadcasts 0 [all …]
|
D | mirror_gre_nh.sh | 32 sysctl_set net.ipv4.conf.all.rp_filter 0 33 sysctl_set net.ipv4.conf.$h3.rp_filter 0 38 sysctl_set net.ipv4.conf.v$h3.rp_filter 0 66 sysctl_restore net.ipv4.conf.v$h3.rp_filter 0 71 sysctl_restore net.ipv4.conf.$h3.rp_filter 72 sysctl_restore net.ipv4.conf.all.rp_filter
|
D | mirror_gre_vlan_bridge_1q.sh | 89 sysctl_set net.ipv4.conf.all.rp_filter 0 90 sysctl_set net.ipv4.conf.$h3.rp_filter 0 122 sysctl_restore net.ipv4.conf.$h3.rp_filter 123 sysctl_restore net.ipv4.conf.all.rp_filter
|
D | vxlan_asymmetric.sh | 219 sysctl_set net.ipv4.conf.all.rp_filter 0 220 sysctl_set net.ipv4.conf.vlan10-v.rp_filter 0 221 sysctl_set net.ipv4.conf.vlan20-v.rp_filter 0 226 sysctl_restore net.ipv4.conf.all.rp_filter 369 sysctl_set net.ipv4.conf.all.rp_filter 0 370 sysctl_set net.ipv4.conf.vlan10-v.rp_filter 0 371 sysctl_set net.ipv4.conf.vlan20-v.rp_filter 0
|
D | vxlan_symmetric.sh | 241 sysctl_set net.ipv4.conf.all.rp_filter 0 242 sysctl_set net.ipv4.conf.vlan10-v.rp_filter 0 243 sysctl_set net.ipv4.conf.vlan20-v.rp_filter 0 248 sysctl_restore net.ipv4.conf.all.rp_filter 412 sysctl_set net.ipv4.conf.all.rp_filter 0 413 sysctl_set net.ipv4.conf.vlan10-v.rp_filter 0 414 sysctl_set net.ipv4.conf.vlan20-v.rp_filter 0
|
D | gre_inner_v4_multipath.sh | 260 sysctl_set net.ipv4.fib_multipath_hash_policy 2 283 sysctl_restore net.ipv4.fib_multipath_hash_policy
|
D | gre_multipath.sh | 213 sysctl_set net.ipv4.fib_multipath_hash_policy 1 235 sysctl_restore net.ipv4.fib_multipath_hash_policy
|
/tools/testing/selftests/bpf/ |
D | test_tcp_check_syncookie.sh | 39 ns1_exec sysctl -w net.ipv4.tcp_syncookies=2 40 ns1_exec sysctl -w net.ipv4.tcp_window_scaling=0 41 ns1_exec sysctl -w net.ipv4.tcp_timestamps=0 42 ns1_exec sysctl -w net.ipv4.tcp_sack=0
|
D | test_tc_tunnel.sh | 100 $0 ipv4 ipip none 100 110 $0 ipv4 gre $mac 100 116 $0 ipv4 gre $mac 2000 122 $0 ipv4 udp $mac 100 128 $0 ipv4 udp $mac 2000 257 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.lo.rp_filter=0 264 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.all.rp_filter=0 267 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.testtun0.rp_filter=0
|
D | test_flow_dissector.sh | 66 echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter 67 echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter 68 echo 0 > /proc/sys/net/ipv4/conf/lo/rp_filter
|
D | test_lwt_ip_encap.sh | 116 ip netns exec ${NS1} sysctl -wq net.ipv4.conf.all.rp_filter=0 117 ip netns exec ${NS2} sysctl -wq net.ipv4.conf.all.rp_filter=0 118 ip netns exec ${NS3} sysctl -wq net.ipv4.conf.all.rp_filter=0 119 ip netns exec ${NS1} sysctl -wq net.ipv4.conf.default.rp_filter=0 120 ip netns exec ${NS2} sysctl -wq net.ipv4.conf.default.rp_filter=0 121 ip netns exec ${NS3} sysctl -wq net.ipv4.conf.default.rp_filter=0 136 ip netns exec ${NS2} sysctl -wq net.ipv4.ip_forward=1
|
/tools/testing/selftests/netfilter/ |
D | bridge_brouter.sh | 65 …ip netns exec ns0 ebtables -t broute -A BROUTING -p ipv4 --ip-protocol icmp -j redirect --redirect… 82 ip netns exec ns0 sysctl -q net.ipv4.conf.veth0.forwarding=1 83 ip netns exec ns0 sysctl -q net.ipv4.conf.veth1.forwarding=1 103 ip netns exec ns0 ebtables -t filter -A FORWARD -p ipv4 --ip-protocol icmp -j DROP 113 …ip netns exec ns0 ebtables -t broute -A BROUTING -p ipv4 --ip-protocol icmp -j redirect --redirect…
|
D | nft_flowtable.sh | 107 ip netns exec nsr$i sysctl net.ipv4.conf.veth0.forwarding=1 > /dev/null 108 ip netns exec nsr$i sysctl net.ipv4.conf.veth1.forwarding=1 > /dev/null 116 ip netns exec ns$i sysctl net.ipv4.tcp_no_metrics_save=1 > /dev/null 119 ip netns exec ns$i sysctl net.ipv4.ip_no_pmtu_disc=1 > /dev/null 162 meta nfproto ipv4 meta l4proto icmp accept 312 ip netns exec ns1 sysctl net.ipv4.ip_no_pmtu_disc=0 > /dev/null 313 ip netns exec ns2 sysctl net.ipv4.ip_no_pmtu_disc=0 > /dev/null
|
D | conntrack_vrf.sh | 71 ip netns exec $ns0 sysctl -q -w net.ipv4.conf.default.rp_filter=0 72 ip netns exec $ns0 sysctl -q -w net.ipv4.conf.all.rp_filter=0 73 ip netns exec $ns0 sysctl -q -w net.ipv4.conf.all.rp_filter=0
|
/tools/testing/selftests/drivers/net/mlxsw/ |
D | qos_dscp_router.sh | 132 sysctl_set net.ipv4.ip_forward_update_priority 1 145 sysctl_restore net.ipv4.ip_forward_update_priority 216 sysctl_restore net.ipv4.ip_forward_update_priority 217 sysctl_set net.ipv4.ip_forward_update_priority $update
|
/tools/usb/usbip/src/ |
D | usbipd.c | 491 static int do_standalone_mode(int daemonize, int ipv4, int ipv6) in do_standalone_mode() argument 523 if (ipv4 && ipv6) in do_standalone_mode() 525 else if (ipv4) in do_standalone_mode() 609 int ipv4 = 0, ipv6 = 0; in main() local 630 ipv4 = 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()
|