Lines Matching defs:NS1
6 * NS0 namespace | NS1 namespace
27 * 1) Creates two veth pairs between NS0 and NS1:
50 #define NS1 "vrf_socket_lookup_1"
139 SYS_NOFAIL("test -f /var/run/netns/" NS1 " && ip netns delete "
140 NS1);
149 SYS(fail, "ip netns add " NS1);
151 /* NS0 <-> NS1 [veth01 <-> veth10] */
153 " netns " NS1);
156 SYS(fail, "ip -net " NS1 " addr add " IP4_ADDR_VETH10 "/24 dev veth10");
157 SYS(fail, "ip -net " NS1 " link set dev veth10 up");
159 /* NS0 <-> NS1 [veth02 <-> veth20] */
161 " netns " NS1);
164 SYS(fail, "ip -net " NS1 " addr add " IP4_ADDR_VETH20 "/24 dev veth20");
165 SYS(fail, "ip -net " NS1 " link set dev veth20 up");
255 /* Perform test from NS1 */
257 nstoken = open_netns(NS1);
258 if (!ASSERT_OK_PTR(nstoken, "setns " NS1))