Lines Matching refs:fail
114 SYS(fail, "ip netns add " NS0); in config_underlay()
115 SYS(fail, "ip netns add " NS1); in config_underlay()
116 SYS(fail, "ip netns add " NS2); 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()
122 SYS(fail, "ip -net " NS1 " addr add " IP4_ADDR_VETH10 "/24 dev veth10"); in config_underlay()
123 SYS(fail, "ip -net " NS1 " link set dev veth10 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()
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()
133 fail: in config_underlay()
141 SYS(fail, "ip -net %s xfrm state add src %s dst %s spi 1 " in setup_xfrm_tunnel_ns()
145 SYS(fail, "ip -net %s xfrm state add src %s dst %s spi 1 " in setup_xfrm_tunnel_ns()
149 SYS(fail, "ip -net %s xfrm policy add dir out src 0.0.0.0/0 dst 0.0.0.0/0 " in setup_xfrm_tunnel_ns()
154 SYS(fail, "ip -net %s xfrm policy add dir in src 0.0.0.0/0 dst 0.0.0.0/0 " in setup_xfrm_tunnel_ns()
159 fail: in setup_xfrm_tunnel_ns()
253 goto fail; in config_overlay()
256 goto fail; in config_overlay()
260 goto fail; 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()
265 SYS(fail, "ip -net " NS1 " link add ipsec0 type xfrm if_id %d", IF_ID_1); in config_overlay()
266 SYS(fail, "ip -net " NS1 " addr add 192.168.1.200/24 dev ipsec0"); in config_overlay()
267 SYS(fail, "ip -net " NS1 " link set dev ipsec0 up"); 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()
274 fail: in config_overlay()
282 SYS(fail, "ping -i 0.01 -c 3 -w 10 -q 192.168.1.200 > /dev/null"); in test_xfrm_ping()
285 goto fail; in test_xfrm_ping()
288 fail: in test_xfrm_ping()