Lines Matching +full:no +full:- +full:ether +full:- +full:link
2 # SPDX-License-Identifier: GPL-2.0
4 # In-place tunneling
10 readonly ns_prefix="ns-$$-"
32 ip link add dev veth1 mtu 1500 netns "${ns1}" type veth \
35 ip netns exec "${ns1}" ethtool -K veth1 tso off
37 ip -netns "${ns1}" link set veth1 up
38 ip -netns "${ns2}" link set veth2 up
40 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth1
41 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth2
42 ip -netns "${ns1}" -6 addr add "${ns1_v6}/64" dev veth1 nodad
43 ip -netns "${ns2}" -6 addr add "${ns2_v6}/64" dev veth2 nodad
46 ip -netns "${ns1}" -4 route flush table main
47 ip -netns "${ns1}" -6 route flush table main
48 ip -netns "${ns1}" -4 route add "${ns2_v4}" mtu 1450 dev veth1
49 ip -netns "${ns1}" -6 route add "${ns2_v6}" mtu 1430 dev veth1
60 if [[ -f "${outfile}" ]]; then
63 if [[ -f "${infile}" ]]; then
67 if [[ -n $server_pid ]]; then
73 ip netns exec "${ns2}" nc "${netcat_opt}" -l "${port}" > "${outfile}" &
79 ip netns exec "${ns1}" timeout 2 nc "${netcat_opt}" -w 1 "${addr2}" "${port}" < "${infile}"
96 set -e
98 # no arguments: automated test, run all
99 if [[ "$#" -eq "0" ]]; then
148 if [[ "$#" -ne "4" ]]; then
159 readonly netcat_opt=-${ipproto}
170 readonly netcat_opt=-${ipproto}
173 readonly fouproto="41 -6"
174 readonly fouproto_mpls="${mplsproto} -6"
200 # client can no longer connect
203 bpf direct-action object-file ${BPF_FILE} \
212 targs="encap fou encap-sport auto encap-dport $udpport"
224 targs="encap fou encap-sport auto encap-dport $dport"
253 ip netns exec "${ns2}" ip link add name testtun0 type "${ttype}" \
259 # No support for MPLS IPv6 fou tunnel; expect failure.
262 # No support for TEB fou tunnel; expect failure.
266 ethaddr=$(ip netns exec "${ns2}" ip link show veth2 | \
267 awk '/ether/ { print $2 }')
268 ip netns exec "${ns2}" ip link set testtun0 address $ethaddr
272 ip netns exec "${ns2}" sysctl -qw net.mpls.platform_labels=65536
273 ip netns exec "${ns2}" ip -f mpls route add 1000 dev lo
274 ip netns exec "${ns2}" ip link set lo up
275 ip netns exec "${ns2}" sysctl -qw net.mpls.conf.testtun0.input=1
276 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.lo.rp_filter=0
283 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.all.rp_filter=0
285 # selected as the max of the "all" and device-specific values.
286 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.testtun0.rp_filter=0
287 ip netns exec "${ns2}" ip link set dev testtun0 up
300 ip netns exec "${ns2}" ip link del dev testtun0
303 bpf direct-action object-file ${BPF_FILE} section decap