Home
last modified time | relevance | path

Searched refs:NS_EXEC (Results 1 – 3 of 3) sorted by relevance

/third_party/ltp/testcases/kernel/containers/netns/
Dnetns_helper.sh20 NS_EXEC=
160 NS_EXEC="ns_exec"
174 $NS_EXEC $NS_HANDLE0 $NS_TYPE ip link add veth0 type veth peer name veth1 || \
177 $NS_EXEC $NS_HANDLE0 $NS_TYPE ns_ifmove veth1 $NS_HANDLE1
193 NS_EXEC="ip netns exec"
206 $NS_EXEC $NS_HANDLE0 ip link add veth0 type veth peer name veth1 || \
209 $NS_EXEC $NS_HANDLE0 ip link set veth1 netns $NS_HANDLE1 || \
217 [ "$NS_EXEC" ] || tst_brk TBROK "netns_setup() function must be called first"
226 echo 0 | $NS_EXEC $NS_HANDLE0 $NS_TYPE \
229 echo 0 | $NS_EXEC $NS_HANDLE1 $NS_TYPE \
[all …]
Dnetns_comm.sh49 EXPECT_PASS $NS_EXEC $NS_HANDLE0 $NS_TYPE $tping -q -c2 -I veth0 $IP1 1>/dev/null
51 EXPECT_PASS $NS_EXEC $NS_HANDLE1 $NS_TYPE $tping -q -c2 -I veth1 $IP0 1>/dev/null
59 $NS_EXEC $NS_HANDLE0 $NS_TYPE ip link set dev lo up || \
63 $NS_EXEC $NS_HANDLE0 $NS_TYPE ifconfig lo up || \
67 EXPECT_PASS $NS_EXEC $NS_HANDLE0 $NS_TYPE $tping -q -c2 -I lo $ip_lo 1>/dev/null
Dnetns_breakns.sh46 EXPECT_FAIL $NS_EXEC $NS_HANDLE0 $NS_TYPE ip address add $IP1/$NETMASK dev veth1
49 EXPECT_FAIL $NS_EXEC $NS_HANDLE0 $NS_TYPE ifconfig veth1 $IFCONF_IN6_ARG $IP1/$NETMASK