Lines Matching +full:1 +full:p1
14 NETIFS[p1]=veth1
26 V4ADDRS[p1]=169.254.1.1
37 V6ADDRS[p1]=2001:db8:101::1
39 V6ADDRS[p3]=2001:db8:301::1
41 V6ADDRS[p5]=2001:db8:501::1
43 V6ADDRS[p7]=2001:db8:701::1
47 # [1] = default table
52 TEST_NET4[1]=169.254.101
56 TEST_NET6[1]=2001:db8:101
60 CONGW[1]=169.254.1.254
65 RECGW4[1]=169.254.11.254
67 RECGW6[1]=2001:db8:11::64
72 TEST_NET4IN6[1]=10.1.1.254
76 MCAST6=ff02::1
87 local rc=$1
92 nsuccess=$((nsuccess+1))
95 nfail=$((nfail+1))
101 [ "$a" = "q" ] && exit 1
127 if [ "$VERBOSE" = "1" ]; then
131 out=$(eval $cmd 2>&1)
133 if [ "$VERBOSE" = "1" -a -n "$out" ]; then
137 [ "$VERBOSE" = "1" ] && echo
144 local dev=$1
158 [ -z "$addr" ] && return 1
186 ip li add ${NETIFS[p1]} type veth peer name ${NETIFS[p2]}
197 for n in 1 3 5 7; do
220 for n in 1 3 5 7; do
234 local table="$1"
250 local table="$1"
271 run_ip 254 ${TEST_NET4[1]}.1 ${CONGW[1]} ${NETIFS[p1]} 0 "unicast connected"
272 run_ip 254 ${TEST_NET4[1]}.2 ${RECGW4[1]} ${NETIFS[p1]} 0 "unicast recursive"
276 run_ip ${VRF_TABLE} ${TEST_NET4[2]}.1 ${CONGW[3]} ${NETIFS[p5]} 0 "unicast connected"
288 run_ip_mpath 254 ${TEST_NET4[1]}.5 \
289 "${CONGW[1]} dev ${NETIFS[p1]} onlink" \
293 run_ip_mpath 254 ${TEST_NET4[1]}.6 \
294 "${RECGW4[1]} dev ${NETIFS[p1]} onlink" \
298 run_ip_mpath 254 ${TEST_NET4[1]}.7 \
299 "${CONGW[1]} dev ${NETIFS[p1]}" \
303 run_ip_mpath 254 ${TEST_NET4[1]}.8 \
304 "${CONGW[1]} dev ${NETIFS[p1]} onlink" \
311 run_ip 254 ${TEST_NET4[1]}.11 ${V4ADDRS[p1]} ${NETIFS[p1]} 2 \
317 run_ip 254 ${TEST_NET4[1]}.101 ${V4ADDRS[p1]} "" 2 "No nexthop device given"
319 run_ip 254 ${TEST_NET4[1]}.102 ${V4ADDRS[p3]} ${NETIFS[p1]} 2 \
332 local table="$1"
348 local table="$1"
367 run_ip6 254 ${TEST_NET6[1]}::1 ${V6ADDRS[p1]/::*}::64 ${NETIFS[p1]} 0 "unicast connected"
368 run_ip6 254 ${TEST_NET6[1]}::2 ${RECGW6[1]} ${NETIFS[p1]} 0 "unicast recursive"
369 run_ip6 254 ${TEST_NET6[1]}::3 ::ffff:${TEST_NET4IN6[1]} ${NETIFS[p1]} 0 "v4-mapped"
373 run_ip6 ${VRF_TABLE} ${TEST_NET6[2]}::1 ${V6ADDRS[p5]/::*}::64 ${NETIFS[p5]} 0 "unicast connected"
387 run_ip6_mpath 254 ${TEST_NET6[1]}::4 "onlink" \
388 "${V6ADDRS[p1]/::*}::64 dev ${NETIFS[p1]}" \
392 run_ip6_mpath 254 ${TEST_NET6[1]}::5 "onlink" \
393 "${RECGW6[1]} dev ${NETIFS[p1]}" \
397 run_ip6_mpath 254 ${TEST_NET6[1]}::6 "onlink" \
398 "::ffff:${TEST_NET4IN6[1]} dev ${NETIFS[p1]}" \
402 run_ip6_mpath 254 ${TEST_NET6[1]}::7 "" \
403 "${V6ADDRS[p1]/::*}::64 dev ${NETIFS[p1]} onlink" \
407 run_ip6_mpath 254 ${TEST_NET6[1]}::8 "" \
408 "${V6ADDRS[p1]/::*}::64 dev ${NETIFS[p1]} onlink" \
412 run_ip6_mpath 254 ${TEST_NET6[1]}::9 "" \
413 "${V6ADDRS[p1]/::*}::64 dev ${NETIFS[p1]}" \
422 lladdr=$(get_linklocal ${NETIFS[p1]}) || return 1
424 run_ip6 254 ${TEST_NET6[1]}::11 ${V6ADDRS[p1]} ${NETIFS[p1]} 2 \
426 run_ip6 254 ${TEST_NET6[1]}::12 ${lladdr} ${NETIFS[p1]} 2 \
428 run_ip6 254 ${TEST_NET6[1]}::12 ${MCAST6} ${NETIFS[p1]} 2 \
431 lladdr=$(get_linklocal ${NETIFS[p5]}) || return 1
439 run_ip6 254 ${TEST_NET6[1]}::101 ${V6ADDRS[p1]} "" 2 \
443 # run_ip6 254 ${TEST_NET6[1]}::102 ${V6ADDRS[p3]/::[0-9]/::64} ${NETIFS[p1]} 2 \
488 v) VERBOSE=$(($VERBOSE + 1));;
490 *) usage; exit 1;;