Lines Matching +full:route +full:- +full:up
2 # SPDX-License-Identifier: BSD-2-Clause
29 # Set up two jails, mjail1 and mjail2, connected with two interface pairs
37 jexec mjail1 ifconfig ${epair1}a up
39 jexec mjail1 ifconfig ${epair2}a up
42 jexec mjail2 ifconfig ${epair1}b up
44 jexec mjail2 ifconfig ${epair2}b up
50 jexec mjail2 $(atf_get_srcdir)/multicast-receive \
52 while ! jexec mjail2 ifmcstat | grep -q 233\.252\.0\.1; do
69 atf_check -s exit:0 -o empty \
70 jexec mjail1 $(atf_get_srcdir)/multicast-send \
72 atf_check -s exit:0 sh -c "wait $pid; exit $?"
73 atf_check -s exit:0 -o inline:"192.0.2.1:6676 hello\n" cat out
77 atf_check -s exit:0 -o empty \
78 jexec mjail1 $(atf_get_srcdir)/multicast-send \
80 atf_check -s exit:0 sh -c "wait $pid; exit $?"
81 atf_check -s exit:0 -o inline:"192.0.3.1:6676 hello\n" cat out
85 atf_check -s exit:0 -o empty \
86 jexec mjail1 $(atf_get_srcdir)/multicast-send \
88 atf_check -s exit:0 sh -c "wait $pid; exit $?"
89 atf_check -s exit:0 -o inline:"192.0.2.1:6676 hello\n" cat out
91 # Set up the receiving jail so that first multicast capable interface
92 # is epair1a and default route points into epair2a. This will allow us
94 jexec mjail2 route add default 192.0.3.254
96 # join group on the interface determined by the route lookup
98 atf_check -s exit:0 -o empty \
99 jexec mjail1 $(atf_get_srcdir)/multicast-send \
101 atf_check -s exit:0 sh -c "wait $pid; exit $?"
102 atf_check -s exit:0 -o inline:"192.0.3.1:6676 hello\n" cat out
122 atf_check -s exit:0 -o empty \
123 jexec mjail1 $(atf_get_srcdir)/multicast-send \
125 atf_check -s exit:0 sh -c "wait $pid; exit $?"
126 atf_check -s exit:0 -o inline:"192.0.2.1:6676 hello\n" cat out
130 atf_check -s exit:0 -o empty \
131 jexec mjail1 $(atf_get_srcdir)/multicast-send \
133 atf_check -s exit:0 sh -c "wait $pid; exit $?"
134 atf_check -s exit:0 -o inline:"192.0.3.1:6676 hello\n" cat out
136 # try to join group on the interface determined by the route lookup
137 atf_check -s exit:71 -e inline:"multicast-receive: setsockopt: Can't assign requested address\n" \
138 jexec mjail2 $(atf_get_srcdir)/multicast-receive \
140 # add route and try again
141 jexec mjail2 route add default 192.0.3.254
143 atf_check -s exit:0 -o empty \
144 jexec mjail1 $(atf_get_srcdir)/multicast-send \
146 atf_check -s exit:0 sh -c "wait $pid; exit $?"
147 atf_check -s exit:0 -o inline:"192.0.3.1:6676 hello\n" cat out
167 atf_check -s exit:0 -o empty \
168 jexec mjail1 $(atf_get_srcdir)/multicast-send \
170 atf_check -s exit:0 sh -c "wait $pid; exit $?"
171 atf_check -s exit:0 -o inline:"192.0.2.1:6676 hello\n" cat out
175 atf_check -s exit:0 -o empty \
176 jexec mjail1 $(atf_get_srcdir)/multicast-send \
178 atf_check -s exit:0 sh -c "wait $pid; exit $?"
179 atf_check -s exit:0 -o inline:"192.0.3.1:6676 hello\n" cat out
181 # try to join group on the interface determined by the route lookup
182 atf_check -s exit:71 -e inline:"multicast-receive: setsockopt: Can't assign requested address\n" \
183 jexec mjail2 $(atf_get_srcdir)/multicast-receive \
185 # add route and try again
186 jexec mjail2 route add default 192.0.3.254
188 atf_check -s exit:0 -o empty \
189 jexec mjail1 $(atf_get_srcdir)/multicast-send \
191 atf_check -s exit:0 sh -c "wait $pid; exit $?"
192 atf_check -s exit:0 -o inline:"192.0.3.1:6676 hello\n" cat out