Lines Matching refs:SYS
72 #define SYS(fmt, ...) \ macro
129 SYS("ip netns add " NS0); in config_underlay()
130 SYS("ip netns add " NS1); in config_underlay()
131 SYS("ip netns add " NS2); in config_underlay()
134 SYS("ip link add veth01 netns " NS0 " type veth peer name veth10 netns " NS1); in config_underlay()
135 SYS("ip -net " NS0 " addr add " IP4_ADDR_VETH01 "/24 dev veth01"); in config_underlay()
136 SYS("ip -net " NS0 " link set dev veth01 up"); in config_underlay()
137 SYS("ip -net " NS1 " addr add " IP4_ADDR_VETH10 "/24 dev veth10"); in config_underlay()
138 SYS("ip -net " NS1 " link set dev veth10 up"); in config_underlay()
141 SYS("ip link add veth02 netns " NS0 " type veth peer name veth20 netns " NS2); in config_underlay()
142 SYS("ip -net " NS0 " addr add " IP4_ADDR_VETH02 "/24 dev veth02"); in config_underlay()
143 SYS("ip -net " NS0 " link set dev veth02 up"); in config_underlay()
144 SYS("ip -net " NS2 " addr add " IP4_ADDR_VETH20 "/24 dev veth20"); in config_underlay()
145 SYS("ip -net " NS2 " link set dev veth20 up"); in config_underlay()
156 SYS("ip -net %s xfrm state add src %s dst %s spi 1 " in setup_xfrm_tunnel_ns()
160 SYS("ip -net %s xfrm state add src %s dst %s spi 1 " in setup_xfrm_tunnel_ns()
164 SYS("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()
169 SYS("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()
277 SYS("ip -net " NS0 " addr add 192.168.1.100/24 dev ipsec0"); in config_overlay()
278 SYS("ip -net " NS0 " link set dev ipsec0 up"); in config_overlay()
280 SYS("ip -net " NS1 " link add ipsec0 type xfrm if_id %d", IF_ID_1); in config_overlay()
281 SYS("ip -net " NS1 " addr add 192.168.1.200/24 dev ipsec0"); in config_overlay()
282 SYS("ip -net " NS1 " link set dev ipsec0 up"); in config_overlay()
284 SYS("ip -net " NS2 " link add ipsec0 type xfrm if_id %d", IF_ID_2); in config_overlay()
285 SYS("ip -net " NS2 " addr add 192.168.1.200/24 dev ipsec0"); in config_overlay()
286 SYS("ip -net " NS2 " link set dev ipsec0 up"); in config_overlay()
297 SYS("ping -i 0.01 -c 3 -w 10 -q 192.168.1.200 > /dev/null"); in test_xfrm_ping()