Searched refs:NS0 (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | vrf_socket_lookup.c | 49 #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 D | xfrm_info.c | 54 #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 D | ip_check_defrag.c | 28 #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 = !system("ip netns exec " NS0 " ping -6 -c 1 -W 1 " VETH1_ADDR6 " &>/dev/null"); in setup_topology() 64 up = !system("ip netns exec " NS0 " ping -c 1 -W 1 " VETH1_ADDR " &>/dev/null"); 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 …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | l2_tos_ttl_inherit.sh | 31 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 D | bareudp.sh | 113 readonly NS0=$(mktemp -u ns0-XXXXXXXX) 143 ip netns add "${NS0}" || exit_cleanup 144 ip netns add "${NS1}" || exit_cleanup "${NS0}" 145 ip netns add "${NS2}" || exit_cleanup "${NS0}" "${NS1}" 146 ip netns add "${NS3}" || exit_cleanup "${NS0}" "${NS1}" "${NS2}" 153 exit_cleanup "${NS0}" "${NS1}" "${NS2}" "${NS3}" 191 for ns in "${NS0}" "${NS1}" "${NS2}" "${NS3}"; do 195 ip link add name veth01 netns "${NS0}" type veth peer name veth10 netns "${NS1}" 198 iface_config "${NS0}" veth01 192.0.2.10 192.0.2.11/32 2001:db8::10 2001:db8::11/128 226 ip -netns "${NS0}" address add 192.0.2.100/32 dev lo [all …]
|