Home
last modified time | relevance | path

Searched refs:NS0 (Results 1 – 7 of 7) sorted by relevance

/linux/tools/testing/selftests/net/
H A Dgre_ipv6_lladdr.sh22 ip -netns "${NS0}" link set dev lo up
23 ip -netns "${NS0}" address add dev lo 192.0.2.10/24
24 ip -netns "${NS0}" address add dev lo 2001:db8::10/64 nodad
50 …ip -netns "${NS0}" -6 address show dev "${DEV}" scope link | grep "fe80::" | grep -q "${EXTRA_MATC…
53 …ip -netns "${NS0}" -6 route show table local type multicast ff00::/8 proto kernel | grep -q "${DEV…
81 …ip link add netns "${NS0}" name gretest type "${GRE_TYPE}" local "${LOCAL_IP}" remote "${REMOTE_IP…
102 ip netns exec "${NS0}" sysctl -qw net.ipv6.conf.gretest.stable_secret="2001:db8::abcd"
113 ip netns exec "${NS0}" sysctl -qw net.ipv6.conf.gretest.addr_gen_mode="${ADDR_GEN_MODE}"
114 ip -netns "${NS0}" link set dev gretest up
118 ip -netns "${NS0}" link set dev gretest down
[all …]
H A Dl2_tos_ttl_inherit.sh31 readonly NS0=$(mktemp -u ns0-XXXXXXXX)
34 RUN_NS0="ip netns exec ${NS0}"
105 ip netns add "${NS0}"
107 ip link add name veth0 netns "${NS0}" type veth \
109 ip -netns "${NS0}" link set dev veth0 up
111 ip -netns "${NS0}" address flush dev veth0
138 ip -netns "${NS0}" address add 198.18.0.1/24 dev veth0
140 ip -netns "${NS0}" link add name tep0 type $type $local_addr1 \
150 ip -netns "${NS0}" address add fdd1:ced0:5d88:3fce::1/64 \
154 ip -netns "${NS0}" link add name tep0 type $type $local_addr1 \
[all …]
H A Dbareudp.sh17 # * NS0 and NS3 are at the extremities of the chain. They have additional
18 # IPv4 and IPv6 addresses on their loopback device. Routes are added in NS0
28 # | NS0 |
109 # Besides the ping tests, a file is copied over TCP from NS0 to NS3 with
138 # Create the four network namespaces used by the script (NS0, NS1, NS2 and NS3)
144 setup_ns NS0 NS1 NS2 NS3 || exit_cleanup
174 # * set up the loopback device in all network namespaces (NS0..NS3),
175 # * set up a veth pair to connect each netns in sequence (NS0 with NS1,
182 ip link add name veth01 netns "${NS0}" type veth peer name veth10 netns "${NS1}"
185 iface_config "${NS0}" veth0
[all...]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dvrf_socket_lookup.c49 #define NS0 "vrf_socket_lookup_0" macro
137 SYS_NOFAIL("test -f /var/run/netns/" NS0 " && ip netns delete " in cleanup()
138 NS0); in cleanup()
148 SYS(fail, "ip netns add " NS0); in setup()
152 SYS(fail, "ip link add veth01 netns " NS0 " type veth peer name veth10" in setup()
154 SYS(fail, "ip -net " NS0 " addr add " IP4_ADDR_VETH01 "/24 dev veth01"); in setup()
155 SYS(fail, "ip -net " NS0 " link set dev veth01 up"); in setup()
160 SYS(fail, "ip link add veth02 netns " NS0 " type veth peer name veth20" in setup()
162 SYS(fail, "ip -net " NS0 " addr add " IP4_ADDR_VETH02 "/24 dev veth02"); in setup()
163 SYS(fail, "ip -net " NS0 " link set dev veth02 up"); in setup()
[all …]
H A Dxfrm_info.c54 #define NS0 "xfrm_test_ns0" macro
107 SYS_NOFAIL("test -f /var/run/netns/" NS0 " && ip netns delete " NS0); in cleanup()
114 SYS(fail, "ip netns add " NS0); in config_underlay()
119 SYS(fail, "ip link add veth01 netns " NS0 " type veth peer name veth10 netns " NS1); in config_underlay()
120 SYS(fail, "ip -net " NS0 " addr add " IP4_ADDR_VETH01 "/24 dev veth01"); in config_underlay()
121 SYS(fail, "ip -net " NS0 " link set dev veth01 up"); in config_underlay()
126 SYS(fail, "ip link add veth02 netns " NS0 " type veth peer name veth20 netns " NS2); in config_underlay()
127 SYS(fail, "ip -net " NS0 " addr add " IP4_ADDR_VETH02 "/24 dev veth02"); in config_underlay()
128 SYS(fail, "ip -net " NS0 " link set dev veth02 up"); in config_underlay()
251 if (setup_xfrm_tunnel(NS0, NS1, IP4_ADDR_VETH01, IP4_ADDR_VETH10, in config_overlay()
[all …]
H A Dip_check_defrag.c28 #define NS0 "defrag_ns0" macro
46 SYS(fail, "ip netns add " NS0); in setup_topology()
48 SYS(fail, "ip link add " VETH0 " netns " NS0 " type veth peer name " VETH1 " netns " NS1); in setup_topology()
50 SYS(fail, "ip -6 -net " NS0 " addr add " VETH0_ADDR6 "/64 dev " VETH0 " nodad"); in setup_topology()
53 SYS(fail, "ip -net " NS0 " addr add " VETH0_ADDR "/24 dev " VETH0); in setup_topology()
56 SYS(fail, "ip -net " NS0 " link set dev " VETH0 " up"); in setup_topology()
62 up = !SYS_NOFAIL("ip netns exec " NS0 " ping -6 -c 1 -W 1 " VETH1_ADDR6); in setup_topology()
64 up = !SYS_NOFAIL("ip netns exec " NS0 " ping -c 1 -W 1 " VETH1_ADDR); in setup_topology()
77 SYS_NOFAIL("test -f /var/run/netns/" NS0 " && ip netns delete " NS0); in cleanup_topology()
199 nstoken = open_netns(NS0); in test_bpf_ip_check_defrag_ok()
[all …]
H A Dxdp_do_redirect.c261 #define NS0 "NS0" macro
305 data->ns[0] = netns_new(NS0, false); in ping_setup()
319 NS0, i, i, i, i, ns_name); in ping_setup()
320 SYS(fail, "ip -n %s link set veth%d up", NS0, i); in ping_setup()
366 nstoken = open_netns(NS0); in ping_test()