Lines Matching +full:3 +full:ns
16 local msg="$3"
36 local ns
41 ns="$1"
49 out=$(eval ip netns exec ${ns} ${cmd} 2>&1)
65 local ns=$1
67 local addr6=$3
72 ip netns add ${ns}
74 ip netns exec ${ns} ip link set lo up
76 ip netns exec ${ns} ip addr add dev lo ${addr}
79 ip netns exec ${ns} ip -6 addr add dev lo ${addr6}
82 ip netns exec ${ns} ip ro add unreachable default metric 8192
83 ip netns exec ${ns} ip -6 ro add unreachable default metric 8192
85 ip netns exec ${ns} sysctl -qw net.ipv4.ip_forward=1
86 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
87 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.forwarding=1
88 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.forwarding=1
89 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.accept_dad=0
97 local ns1_addr=$3
155 # H1's host part of address: 3
163 local ns
165 for ns in host-1 host-2 router-1 router-2
167 ip netns del ${ns} 2>/dev/null
197 connect_ns host-1 eth0 - 2000:101::3/64 router-1 eth0 - -
243 local ns
245 for ns in host-1 host-2 router
247 ip netns del ${ns} 2>/dev/null
321 printf "\nTests passed: %3d\n" ${nsuccess}
322 printf "Tests failed: %3d\n" ${nfail}