Lines Matching +full:3 +full:ns
40 local msg="$3"
86 local ns=$1
88 local table=$3
90 if [ -n "${ns}" ]; then
91 ns="-netns ${ns}"
94 ip ${ns} link add ${vrf} type vrf table ${table}
95 ip ${ns} link set ${vrf} up
96 ip ${ns} route add vrf ${vrf} unreachable default metric 8192
97 ip ${ns} -6 route add vrf ${vrf} unreachable default metric 8192
99 ip ${ns} addr add 127.0.0.1/8 dev ${vrf}
100 ip ${ns} -6 addr add ::1 dev ${vrf} nodad
102 ip ${ns} ru del pref 0
103 ip ${ns} ru add pref 32765 from all lookup local
104 ip ${ns} -6 ru del pref 0
105 ip ${ns} -6 ru add pref 32765 from all lookup local
110 local ns=$1
112 local addr6=$3
118 ip -netns ${ns} addr add dev lo ${addr}
121 ip -netns ${ns} -6 addr add dev lo ${addr6}
124 ip -netns ${ns} ro add unreachable default metric 8192
125 ip -netns ${ns} -6 ro add unreachable default metric 8192
127 ip netns exec ${ns} sysctl -qw net.ipv4.ip_forward=1
128 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
129 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.forwarding=1
130 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.forwarding=1
131 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.accept_dad=0
139 local ns1_addr=$3
193 for ns in $host1 $host2
197 ip -netns ${ns} xfrm ${x} flush
198 ip -6 -netns ${ns} xfrm ${x} flush
207 local h1_6=$3
428 printf "\nTests passed: %3d\n" ${nsuccess}
429 printf "Tests failed: %3d\n" ${nfail}