Lines Matching +full:- +full:10
2 # SPDX-License-Identifier: GPL-2.0
10 # Kselftest framework requirement - SKIP code is 4.
22 if [[ -z $(ip netns identify $$) ]]; then
30 if ! unshare --net $bpftool prog attach pinned \
39 if unshare --net $bpftool prog attach pinned \
51 rm -rf /sys/fs/bpf/flow
77 ./flow_dissector_load -d 2> /dev/null
78 if [ $unmount -ne 0 ]; then
84 # program/thing exits with a non-zero status.
85 set -e
87 # (Use 'trap -l' to list meaning of numbers)
96 /bin/mount bpffs /sys/fs/bpf -t bpf
100 ./flow_dissector_load -p $BPF_FILE -s _dissect
113 # Send 10 IPv4/UDP packets from port 8. Filter should not drop any.
114 ./test_flow_dissector -i 4 -f 8
115 # Send 10 IPv4/UDP packets from port 9. Filter should drop all.
116 ./test_flow_dissector -i 4 -f 9 -F
117 # Send 10 IPv4/UDP packets from port 10. Filter should not drop any.
118 ./test_flow_dissector -i 4 -f 10
121 # Send 10 IPv4/UDP packets from port 8. Filter should not drop any.
122 ./test_flow_dissector -i 4 -S 127.0.0.127 -f 8
123 # Send 10 IPv4/UDP packets from port 9. Filter should drop all.
124 ./test_flow_dissector -i 4 -S 127.0.0.127 -f 9 -F
125 # Send 10 IPv4/UDP packets from port 10. Filter should not drop any.
126 ./test_flow_dissector -i 4 -S 127.0.0.127 -f 10
129 # Send 10 IPv4/IPv4/UDP packets from port 8. Filter should not drop any.
130 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e bare -i 4 \
131 -D 192.168.0.1 -S 1.1.1.1 -f 8
132 # Send 10 IPv4/IPv4/UDP packets from port 9. Filter should drop all.
133 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e bare -i 4 \
134 -D 192.168.0.1 -S 1.1.1.1 -f 9 -F
135 # Send 10 IPv4/IPv4/UDP packets from port 10. Filter should not drop any.
136 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e bare -i 4 \
137 -D 192.168.0.1 -S 1.1.1.1 -f 10
140 # Send 10 IPv4/GRE/IPv4/UDP packets from port 8. Filter should not drop any.
141 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e gre -i 4 \
142 -D 192.168.0.1 -S 1.1.1.1 -f 8
143 # Send 10 IPv4/GRE/IPv4/UDP packets from port 9. Filter should drop all.
144 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e gre -i 4 \
145 -D 192.168.0.1 -S 1.1.1.1 -f 9 -F
146 # Send 10 IPv4/GRE/IPv4/UDP packets from port 10. Filter should not drop any.
147 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e gre -i 4 \
148 -D 192.168.0.1 -S 1.1.1.1 -f 10
153 # Drops all IP/UDP packets coming from port 8-10
155 udp src_port 8-10 action drop
157 # Send 10 IPv4/UDP packets from port 7. Filter should not drop any.
158 ./test_flow_dissector -i 4 -f 7
159 # Send 10 IPv4/UDP packets from port 9. Filter should drop all.
160 ./test_flow_dissector -i 4 -f 9 -F
161 # Send 10 IPv4/UDP packets from port 11. Filter should not drop any.
162 ./test_flow_dissector -i 4 -f 11
171 # Send 10 IPv6/UDP packets from port 8. Filter should not drop any.
172 ./test_flow_dissector -i 6 -f 8
173 # Send 10 IPv6/UDP packets from port 9. Filter should drop all.
174 ./test_flow_dissector -i 6 -f 9 -F
175 # Send 10 IPv6/UDP packets from port 10. Filter should not drop any.
176 ./test_flow_dissector -i 6 -f 10