Lines Matching +full:1 +full:a
44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
49 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
52 tc_check_packets "dev $h2 ingress" 101 1
53 check_fail $? "Matched on a wrong filter"
58 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
70 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
75 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
78 tc_check_packets "dev $h2 ingress" 101 1
79 check_fail $? "Matched on a wrong filter"
84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
94 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
101 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
104 tc_check_packets "dev $h2 ingress" 101 1
105 check_fail $? "Matched on a wrong filter"
107 tc_check_packets "dev $h2 ingress" 102 1
112 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
115 tc_check_packets "dev $h2 ingress" 103 1
118 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
128 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
135 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
138 tc_check_packets "dev $h2 ingress" 101 1
139 check_fail $? "Matched on a wrong filter"
141 tc_check_packets "dev $h2 ingress" 102 1
146 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
149 tc_check_packets "dev $h2 ingress" 103 1
152 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
162 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
171 $MZ $h1 -c 1 -p 1000 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
174 tc_check_packets "dev $h2 ingress" 101 1
177 tc_check_packets "dev $h2 ingress" 102 1
180 tc_check_packets "dev $h2 ingress" 103 1
183 tc_check_packets "dev $h2 ingress" 104 1
186 $MZ $h1 -c 1 -p 1000 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
189 tc_check_packets "dev $h2 ingress" 101 1
190 check_err $? "Did not match on frag filter (1stfrag)"
192 tc_check_packets "dev $h2 ingress" 102 1
193 check_err $? "Did not match fistfrag filter (1stfrag)"
195 tc_check_packets "dev $h2 ingress" 103 1
196 check_err $? "Matched on wrong nofirstfrag filter (1stfrag)"
198 tc_check_packets "dev $h2 ingress" 104 1
199 check_err $? "Match on wrong nofrag filter (1stfrag)"
201 $MZ $h1 -c 1 -p 1000 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
203 $MZ $h1 -c 1 -p 1000 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
209 tc_check_packets "dev $h2 ingress" 102 1
215 tc_check_packets "dev $h2 ingress" 104 1
218 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
232 tc filter add dev $h2 ingress protocol 802.1q pref 1 handle 101 \
237 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -B 192.0.2.11 -Q 7:85 -t ip -q
238 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -B 192.0.2.11 -Q 0:85 -t ip -q
243 tc_check_packets "dev $h2 ingress" 102 1
247 tc filter del dev $h2 ingress protocol 802.1q pref 1 handle 101 flower
261 tc filter add dev $h2 ingress protocol 802.1q pref 1 handle 101 \
266 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -B 192.0.2.11 -Q 0:85 -t ip -q
271 tc_check_packets "dev $h2 ingress" 102 1
275 tc filter del dev $h2 ingress protocol 802.1q pref 1 handle 101 flower
287 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
292 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
295 tc_check_packets "dev $h2 ingress" 101 1
296 check_fail $? "Matched on a wrong filter (0x18)"
298 tc_check_packets "dev $h2 ingress" 102 1
301 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
305 check_fail $? "Matched on a wrong filter (0x20)"
307 tc_check_packets "dev $h2 ingress" 101 1
311 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
320 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
325 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
328 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
331 tc_check_packets "dev $h2 ingress" 102 1
337 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
341 check_fail $? "Matched on a wrong filter (ttl=63)"
343 tc_check_packets "dev $h2 ingress" 102 1
347 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
356 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
361 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
364 tc_check_packets "dev $h2 ingress" 101 1
365 check_fail $? "Matched on a wrong filter"
367 tc_check_packets "dev $h2 ingress" 102 1
371 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
380 local label=$1
388 $((((label & 0xf) << 4) + (tc << 1) + bos)) \ heredoc
401 tc filter add dev $h2 ingress protocol mpls_uc pref 1 handle 101 \
406 pkt="$ethtype $(mpls_lse 1048575 0 1 255)"
407 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
409 tc_check_packets "dev $h2 ingress" 101 1
410 check_fail $? "Matched on a wrong filter (1048575)"
412 tc_check_packets "dev $h2 ingress" 102 1
415 pkt="$ethtype $(mpls_lse 0 0 1 255)"
416 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
419 check_fail $? "Matched on a wrong filter (0)"
421 tc_check_packets "dev $h2 ingress" 101 1
425 tc filter del dev $h2 ingress protocol mpls_uc pref 1 handle 101 flower
439 tc filter add dev $h2 ingress protocol mpls_uc pref 1 handle 101 \
444 pkt="$ethtype $(mpls_lse 0 7 1 255)"
445 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
447 tc_check_packets "dev $h2 ingress" 101 1
448 check_fail $? "Matched on a wrong filter (7)"
450 tc_check_packets "dev $h2 ingress" 102 1
453 pkt="$ethtype $(mpls_lse 0 0 1 255)"
454 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
457 check_fail $? "Matched on a wrong filter (0)"
459 tc_check_packets "dev $h2 ingress" 101 1
463 tc filter del dev $h2 ingress protocol mpls_uc pref 1 handle 101 flower
477 tc filter add dev $h2 ingress protocol mpls_uc pref 1 handle 101 \
480 flower $tcflags mpls_bos 1 action drop
482 pkt="$ethtype $(mpls_lse 0 0 1 255)"
483 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
485 tc_check_packets "dev $h2 ingress" 101 1
486 check_fail $? "Matched on a wrong filter (1)"
488 tc_check_packets "dev $h2 ingress" 102 1
489 check_err $? "Did not match on correct filter (1)"
491 # Need to add a second label to properly mark the Bottom of Stack
492 pkt="$ethtype $(mpls_lse 0 0 0 255) $(mpls_lse 0 0 1 255)"
493 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
496 check_fail $? "Matched on a wrong filter (0)"
498 tc_check_packets "dev $h2 ingress" 101 1
502 tc filter del dev $h2 ingress protocol mpls_uc pref 1 handle 101 flower
516 tc filter add dev $h2 ingress protocol mpls_uc pref 1 handle 101 \
521 pkt="$ethtype $(mpls_lse 0 0 1 255)"
522 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
524 tc_check_packets "dev $h2 ingress" 101 1
525 check_fail $? "Matched on a wrong filter (255)"
527 tc_check_packets "dev $h2 ingress" 102 1
530 pkt="$ethtype $(mpls_lse 0 0 1 0)"
531 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
534 check_fail $? "Matched on a wrong filter (0)"
536 tc_check_packets "dev $h2 ingress" 101 1
540 tc filter del dev $h2 ingress protocol mpls_uc pref 1 handle 101 flower
555 tc filter add dev $h2 ingress protocol mpls_uc pref 1 handle 101 \
556 flower $tcflags mpls lse depth 1 label 0 action continue
558 flower $tcflags mpls lse depth 1 tc 0 action continue
560 flower $tcflags mpls lse depth 1 bos 0 action continue
562 flower $tcflags mpls lse depth 1 ttl 0 action continue
570 flower $tcflags mpls lse depth 2 bos 1 action continue
576 flower $tcflags mpls lse depth 1 action continue
583 pkt="$ethtype $(mpls_lse 0 0 0 0) $(mpls_lse 1048575 7 1 255)"
584 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
586 # Make a variant of the above packet, with a non-matching value
589 # Wrong label at depth 1
590 pkt="$ethtype $(mpls_lse 1 0 0 0) $(mpls_lse 1048575 7 1 255)"
591 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
593 # Wrong TC at depth 1
594 pkt="$ethtype $(mpls_lse 0 1 0 0) $(mpls_lse 1048575 7 1 255)"
595 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
597 # Wrong BOS at depth 1 (not adding a second LSE here since BOS is set
599 pkt="$ethtype $(mpls_lse 0 0 1 0)"
600 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
602 # Wrong TTL at depth 1
603 pkt="$ethtype $(mpls_lse 0 0 0 1) $(mpls_lse 1048575 7 1 255)"
604 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
607 pkt="$ethtype $(mpls_lse 0 0 0 0) $(mpls_lse 1048574 7 1 255)"
608 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
611 pkt="$ethtype $(mpls_lse 0 0 0 0) $(mpls_lse 1048575 6 1 255)"
612 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
614 # Wrong BOS at depth 2 (adding a third LSE here since BOS isn't set in
617 pkt="$pkt $(mpls_lse 0 0 1 255)"
618 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
621 pkt="$ethtype $(mpls_lse 0 0 0 0) $(mpls_lse 1048575 7 1 254)"
622 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
624 # Filters working at depth 1 should match all packets but one
661 tc_check_packets "dev $h2 ingress" 111 1
674 tc filter del dev $h2 ingress protocol mpls_uc pref 1 handle 101 flower