Lines Matching +full:8 +full:- +full:9
2 # SPDX-License-Identifier: GPL-2.0
8 # Kselftest framework requirement - SKIP code is 4.
20 if [[ -z $(ip netns identify $$) ]]; then
28 if ! unshare --net $bpftool prog attach pinned \
37 if unshare --net $bpftool prog attach pinned \
49 rm -rf /sys/fs/bpf/flow
75 ./flow_dissector_load -d 2> /dev/null
76 if [ $unmount -ne 0 ]; then
82 # program/thing exits with a non-zero status.
83 set -e
85 # (Use 'trap -l' to list meaning of numbers)
86 trap exit_handler 0 2 3 6 9
94 /bin/mount bpffs /sys/fs/bpf -t bpf
98 ./flow_dissector_load -p bpf_flow.o -s flow_dissector
107 # Drops all IP/UDP packets coming from port 9
109 udp src_port 9 action drop
111 # Send 10 IPv4/UDP packets from port 8. Filter should not drop any.
112 ./test_flow_dissector -i 4 -f 8
113 # Send 10 IPv4/UDP packets from port 9. Filter should drop all.
114 ./test_flow_dissector -i 4 -f 9 -F
116 ./test_flow_dissector -i 4 -f 10
119 # Send 10 IPv4/IPv4/UDP packets from port 8. Filter should not drop any.
120 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e bare -i 4 \
121 -D 192.168.0.1 -S 1.1.1.1 -f 8
122 # Send 10 IPv4/IPv4/UDP packets from port 9. Filter should drop all.
123 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e bare -i 4 \
124 -D 192.168.0.1 -S 1.1.1.1 -f 9 -F
126 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e bare -i 4 \
127 -D 192.168.0.1 -S 1.1.1.1 -f 10
130 # Send 10 IPv4/GRE/IPv4/UDP packets from port 8. Filter should not drop any.
131 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e gre -i 4 \
132 -D 192.168.0.1 -S 1.1.1.1 -f 8
133 # Send 10 IPv4/GRE/IPv4/UDP packets from port 9. Filter should drop all.
134 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e gre -i 4 \
135 -D 192.168.0.1 -S 1.1.1.1 -f 9 -F
137 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e gre -i 4 \
138 -D 192.168.0.1 -S 1.1.1.1 -f 10
143 # Drops all IP/UDP packets coming from port 8-10
145 udp src_port 8-10 action drop
148 ./test_flow_dissector -i 4 -f 7
149 # Send 10 IPv4/UDP packets from port 9. Filter should drop all.
150 ./test_flow_dissector -i 4 -f 9 -F
152 ./test_flow_dissector -i 4 -f 11
157 # Drops all IPv6/UDP packets coming from port 9
159 udp src_port 9 action drop
161 # Send 10 IPv6/UDP packets from port 8. Filter should not drop any.
162 ./test_flow_dissector -i 6 -f 8
163 # Send 10 IPv6/UDP packets from port 9. Filter should drop all.
164 ./test_flow_dissector -i 6 -f 9 -F
166 ./test_flow_dissector -i 6 -f 10