Lines Matching +full:2 +full:a

10 NUM_NETIFS=2
46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
49 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
53 check_fail $? "Matched on a wrong filter"
59 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
72 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
75 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
79 check_fail $? "Matched on a wrong filter"
85 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
96 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
101 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
105 check_fail $? "Matched on a wrong filter"
110 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
112 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
130 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
135 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
139 check_fail $? "Matched on a wrong filter"
144 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
146 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
164 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
171 $MZ $h1 -c 1 -p 1000 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
186 $MZ $h1 -c 1 -p 1000 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
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 \
219 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
234 tc filter add dev $h2 ingress protocol 802.1q pref 2 handle 102 \
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
246 tc filter del dev $h2 ingress protocol 802.1q pref 2 handle 102 flower
263 tc filter add dev $h2 ingress protocol 802.1q pref 2 handle 102 \
266 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -B 192.0.2.11 -Q 0:85 -t ip -q
274 tc filter del dev $h2 ingress protocol 802.1q pref 2 handle 102 flower
289 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
292 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
296 check_fail $? "Matched on a wrong filter (0x18)"
301 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
304 tc_check_packets "dev $h2 ingress" 102 2
305 check_fail $? "Matched on a wrong filter (0x20)"
310 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
322 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 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 \
334 tc_check_packets "dev $h2 ingress" 101 2
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)"
346 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
358 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
361 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \
365 check_fail $? "Matched on a wrong filter"
370 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
381 local tc=$2
403 tc filter add dev $h2 ingress protocol mpls_uc pref 2 handle 102 \
407 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
410 check_fail $? "Matched on a wrong filter (1048575)"
416 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
418 tc_check_packets "dev $h2 ingress" 102 2
419 check_fail $? "Matched on a wrong filter (0)"
424 tc filter del dev $h2 ingress protocol mpls_uc pref 2 handle 102 flower
441 tc filter add dev $h2 ingress protocol mpls_uc pref 2 handle 102 \
445 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
448 check_fail $? "Matched on a wrong filter (7)"
454 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
456 tc_check_packets "dev $h2 ingress" 102 2
457 check_fail $? "Matched on a wrong filter (0)"
462 tc filter del dev $h2 ingress protocol mpls_uc pref 2 handle 102 flower
479 tc filter add dev $h2 ingress protocol mpls_uc pref 2 handle 102 \
483 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
486 check_fail $? "Matched on a wrong filter (1)"
491 # Need to add a second label to properly mark the Bottom of Stack
493 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
495 tc_check_packets "dev $h2 ingress" 102 2
496 check_fail $? "Matched on a wrong filter (0)"
501 tc filter del dev $h2 ingress protocol mpls_uc pref 2 handle 102 flower
518 tc filter add dev $h2 ingress protocol mpls_uc pref 2 handle 102 \
522 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
525 check_fail $? "Matched on a wrong filter (255)"
531 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
533 tc_check_packets "dev $h2 ingress" 102 2
534 check_fail $? "Matched on a wrong filter (0)"
539 tc filter del dev $h2 ingress protocol mpls_uc pref 2 handle 102 flower
557 tc filter add dev $h2 ingress protocol mpls_uc pref 2 handle 102 \
566 flower $tcflags mpls lse depth 2 label 1048575 action continue
568 flower $tcflags mpls lse depth 2 tc 7 action continue
570 flower $tcflags mpls lse depth 2 bos 1 action continue
572 flower $tcflags mpls lse depth 2 ttl 255 action continue
578 flower $tcflags mpls lse depth 2 action continue
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
591 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
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
600 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
604 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
606 # Wrong label at depth 2
608 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
610 # Wrong TC at depth 2
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
618 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
620 # Wrong TTL at depth 2
622 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac "$pkt" -q
638 # Filters working at depth 2 should match all packets but two (because
673 tc filter del dev $h2 ingress protocol mpls_uc pref 2 handle 102 flower