Lines Matching +full:auto +full:- +full:sleep +full:- +full:disabled
2 # SPDX-License-Identifier: GPL-2.0
4 # In-place tunneling
10 readonly ns_prefix="ns-$$-"
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
51 sleep 1
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}" &
78 ip netns exec "${ns1}" timeout 2 nc "${netcat_opt}" -w 1 "${addr2}" "${port}" < "${infile}"
97 if ip netns exec "${ns2}" ss ${2:--4}OHntl | grep -q "$1"; then
100 sleep 0.1
105 set -e
108 if [[ "$#" -eq "0" ]]; then
157 if [[ "$#" -ne "4" ]]; then
168 readonly netcat_opt=-${ipproto}
179 readonly netcat_opt=-${ipproto}
182 readonly fouproto="41 -6"
183 readonly fouproto_mpls="${mplsproto} -6"
213 bpf direct-action object-file ${BPF_FILE} \
223 targs="encap fou encap-sport auto encap-dport $udpport"
235 targs="encap fou encap-sport auto encap-dport $dport"
283 ip netns exec "${ns2}" sysctl -qw net.mpls.platform_labels=65536
284 ip netns exec "${ns2}" ip -f mpls route add 1000 dev lo
286 ip netns exec "${ns2}" sysctl -qw net.mpls.conf.testtun0.input=1
287 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.lo.rp_filter=0
291 # the IP stack perspective. Ensure reverse path filtering is disabled
294 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.all.rp_filter=0
295 # rp needs to be disabled for both all and testtun0 as the rp value is
296 # selected as the max of the "all" and device-specific values.
297 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.testtun0.rp_filter=0
314 bpf direct-action object-file ${BPF_FILE} section decap