Lines Matching +full:local +full:- +full:host

2 # SPDX-License-Identifier: GPL-2.0
5 # enable RFC9131 behaviour. The following is the test-matrix.
7 # ---- ------ ------ ----------------------------------------------
19 HOST_INTF="veth-host"
20 ROUTER_INTF="veth-router"
33 local rc=$1
34 local expected=$2
35 local msg="$3"
37 if [ ${rc} -eq ${expected} ]; then
38 printf " TEST: %-60s [ OK ]\n" "${msg}"
43 printf " TEST: %-60s [FAIL]\n" "${msg}"
62 set -e
64 local drop_unsolicited_na=$1
65 local accept_untracked_na=$2
66 local forwarding=$3
69 # On end of the tunnel is a router and the other end is a host.
71 IP_HOST="ip -6 -netns ${HOST_NS}"
73 IP_ROUTER="ip -6 -netns ${ROUTER_NS}"
79 # Enable IPv6 on both router and host, and configure static addresses.
82 # forwarding=0 case is to check that a non-router
85 ${IP_ROUTER_EXEC} sysctl -qw \
87 ${IP_ROUTER_EXEC} sysctl -qw \
89 ${IP_ROUTER_EXEC} sysctl -qw \
91 ${IP_ROUTER_EXEC} sysctl -qw ${ROUTER_CONF}.disable_ipv6=0
94 # Turn on ndisc_notify on host interface so that
95 # the host sends unsolicited NAs.
97 ${IP_HOST_EXEC} sysctl -qw ${HOST_CONF}.ndisc_notify=1
98 ${IP_HOST_EXEC} sysctl -qw ${HOST_CONF}.disable_ipv6=0
105 set -e
109 tcpdump --immediate-mode -tpni ${ROUTER_INTF} -c 1 \
117 set -e
118 [[ ! -z ${tcpdump_stdout} ]] && rm -f ${tcpdump_stdout}
119 [[ ! -z ${tcpdump_stderr} ]] && rm -f ${tcpdump_stderr}
133 set -e
140 local drop_unsolicited_na=$1
141 local accept_untracked_na=$2
142 local forwarding=$3
146 if [ ${drop_unsolicited_na} -eq 0 ] && \
147 [ ${accept_untracked_na} -eq 1 ] && \
148 [ ${forwarding} -eq 1 ]; then
153 [[ -z ${neigh_show_output} ]]
205 -p Pause on fail
206 -P Pause after each test before cleanup
226 if [ "$(id -u)" -ne 0 ];then
231 if [ ! -x "$(command -v ip)" ]; then
236 if [ ! -x "$(command -v tcpdump)" ]; then