Lines Matching refs:NS0
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()
254 if (setup_xfrm_tunnel(NS0, NS2, IP4_ADDR_VETH02, IP4_ADDR_VETH20, in config_overlay()
259 if (!ASSERT_OK(setup_xfrmi_external_dev(NS0), "xfrmi")) in config_overlay()
262 SYS(fail, "ip -net " NS0 " addr add 192.168.1.100/24 dev ipsec0"); in config_overlay()
263 SYS(fail, "ip -net " NS0 " link set dev ipsec0 up"); in config_overlay()
304 nstoken = open_netns(NS0); in _test_xfrm_info()
305 if (!ASSERT_OK_PTR(nstoken, "setns " NS0)) in _test_xfrm_info()