Lines Matching defs:NS1
6 * NS0 namespace | NS1 namespace | NS2 namespace
39 * 3) ping reaches the other namespace (NS1 or NS2 based on which if_id was
55 #define NS1 "xfrm_test_ns1"
108 SYS_NOFAIL("test -f /var/run/netns/" NS1 " && ip netns delete " NS1);
115 SYS(fail, "ip netns add " NS1);
118 /* NS0 <-> NS1 [veth01 <-> veth10] */
119 SYS(fail, "ip link add veth01 netns " NS0 " type veth peer name veth10 netns " NS1);
122 SYS(fail, "ip -net " NS1 " addr add " IP4_ADDR_VETH10 "/24 dev veth10");
123 SYS(fail, "ip -net " NS1 " link set dev veth10 up");
251 if (setup_xfrm_tunnel(NS0, NS1, IP4_ADDR_VETH01, IP4_ADDR_VETH10,
265 SYS(fail, "ip -net " NS1 " link add ipsec0 type xfrm if_id %d", IF_ID_1);
266 SYS(fail, "ip -net " NS1 " addr add 192.168.1.200/24 dev ipsec0");
267 SYS(fail, "ip -net " NS1 " link set dev ipsec0 up");
322 if (!ASSERT_EQ(test_xfrm_ping(skel, IF_ID_0_TO_1), 0, "ping " NS1))