Lines Matching refs:NS2
56 #define NS2 "xfrm_test_ns2" macro
109 SYS_NOFAIL("test -f /var/run/netns/" NS2 " && ip netns delete " NS2); in cleanup()
116 SYS(fail, "ip netns add " NS2); in config_underlay()
126 SYS(fail, "ip link add veth02 netns " NS0 " type veth peer name veth20 netns " NS2); in config_underlay()
129 SYS(fail, "ip -net " NS2 " addr add " IP4_ADDR_VETH20 "/24 dev veth20"); in config_underlay()
130 SYS(fail, "ip -net " NS2 " link set dev veth20 up"); in config_underlay()
254 if (setup_xfrm_tunnel(NS0, NS2, IP4_ADDR_VETH02, IP4_ADDR_VETH20, in config_overlay()
269 SYS(fail, "ip -net " NS2 " link add ipsec0 type xfrm if_id %d", IF_ID_2); in config_overlay()
270 SYS(fail, "ip -net " NS2 " addr add 192.168.1.200/24 dev ipsec0"); in config_overlay()
271 SYS(fail, "ip -net " NS2 " link set dev ipsec0 up"); in config_overlay()
324 if (!ASSERT_EQ(test_xfrm_ping(skel, IF_ID_0_TO_2), 0, "ping " NS2)) in _test_xfrm_info()