Lines Matching +full:0 +full:xfc

7 ret=0
122 if [ $? -ne 0 ]; then
128 if [ $? -ne 0 ]; then
133 return 0
139 log_test $? 0 "rule6 del $1"
158 log_test $? 0 "rule6 check: $description"
164 log_test $? 0 "rule6 del by pref: $description"
176 if [ $rc -eq 0 ]; then
212 match="tos 0x10"
213 for cnt in "0x10" "0x11" "0x12" "0x13"; do
217 getnomatch="tos 0x20"
225 match="tos 0x10"
226 for cnt in "0x10" "0x11" "0x12" "0x13"; do
228 getnomatch="tos 0x20"
236 match="fwmark 0x64"
237 getmatch="mark 0x64"
238 getnomatch="mark 0x63"
243 if [ $? -eq 0 ]; then
253 if [ $? -eq 0 ]; then
262 if [ $? -eq 0 ]; then
270 if [ $? -eq 0 ]; then
279 if [ $? -eq 0 ]; then
280 match="dscp 0x3f"
281 getmatch="tos 0xfc"
282 getnomatch="tos 0xf4"
287 match="dscp 0x3f"
288 getmatch="from $SRC_IP6 iif $DEV tos 0xfc"
289 getnomatch="from $SRC_IP6 iif $DEV tos 0xf4"
313 $IP -6 rule add dsfield 0x04 table $RTABLE_PEER
315 # Combine the base DS Field value (0x04) with all possible ECN values
316 # (Not-ECT: 0, ECT(1): 1, ECT(0): 2, CE: 3).
318 for dsfield in 0x04 0x05 0x06 0x07; do
321 log_test $? 0 "rule6 dsfield udp connect (dsfield ${dsfield})"
325 log_test $? 0 "rule6 dsfield tcp connect (dsfield ${dsfield})"
331 -Q 0x20 -l 2001:db8::1:11 -r 2001:db8::1:11
332 log_test $? 1 "rule6 dsfield udp no connect (dsfield 0x20)"
334 nettest -q -6 -B -t 5 -N $testns -O $peerns -Q 0x20 \
336 log_test $? 1 "rule6 dsfield tcp no connect (dsfield 0x20)"
338 $IP -6 rule del dsfield 0x04 table $RTABLE_PEER
341 if [ $? -ne 0 ]; then
347 $IP -6 rule add dscp 0x3f table $RTABLE_PEER
349 nettest -q -6 -B -t 5 -N $testns -O $peerns -U -D -Q 0xfc \
351 log_test $? 0 "rule6 dscp udp connect"
353 nettest -q -6 -B -t 5 -N $testns -O $peerns -Q 0xfc \
355 log_test $? 0 "rule6 dscp tcp connect"
357 nettest -q -6 -B -t 5 -N $testns -O $peerns -U -D -Q 0xf4 \
361 nettest -q -6 -B -t 5 -N $testns -O $peerns -Q 0xf4 \
365 $IP -6 rule del dscp 0x3f table $RTABLE_PEER
373 log_test $? 0 "del $1"
392 log_test $? 0 "rule4 check: $description"
398 log_test $? 0 "rule4 del by pref: $description"
410 if [ $rc -eq 0 ]; then
437 ip netns exec $testns sysctl -qw net.ipv4.conf.$DEV.rp_filter=0
450 match="tos 0x10"
451 for cnt in "0x10" "0x11" "0x12" "0x13"; do
455 getnomatch="tos 0x20"
463 match="tos 0x10"
464 for cnt in "0x10" "0x11" "0x12" "0x13"; do
466 getnomatch="tos 0x20"
474 match="fwmark 0x64"
475 getmatch="mark 0x64"
476 getnomatch="mark 0x63"
481 if [ $? -eq 0 ]; then
491 if [ $? -eq 0 ]; then
500 if [ $? -eq 0 ]; then
509 if [ $? -eq 0 ]; then
518 if [ $? -eq 0 ]; then
519 match="dscp 0x3f"
520 getmatch="tos 0xfc"
521 getnomatch="tos 0xf4"
526 match="dscp 0x3f"
527 getmatch="from $SRC_IP iif $DEV tos 0xfc"
528 getnomatch="from $SRC_IP iif $DEV tos 0xf4"
552 $IP -4 rule add dsfield 0x04 table $RTABLE_PEER
554 # Combine the base DS Field value (0x04) with all possible ECN values
555 # (Not-ECT: 0, ECT(1): 1, ECT(0): 2, CE: 3).
557 for dsfield in 0x04 0x05 0x06 0x07; do
560 log_test $? 0 "rule4 dsfield udp connect (dsfield ${dsfield})"
564 log_test $? 0 "rule4 dsfield tcp connect (dsfield ${dsfield})"
569 nettest -q -B -t 5 -N $testns -O $peerns -D -U -Q 0x20 \
571 log_test $? 1 "rule4 dsfield udp no connect (dsfield 0x20)"
573 nettest -q -B -t 5 -N $testns -O $peerns -Q 0x20 \
575 log_test $? 1 "rule4 dsfield tcp no connect (dsfield 0x20)"
577 $IP -4 rule del dsfield 0x04 table $RTABLE_PEER
580 if [ $? -ne 0 ]; then
586 $IP -4 rule add dscp 0x3f table $RTABLE_PEER
588 nettest -q -B -t 5 -N $testns -O $peerns -D -U -Q 0xfc \
590 log_test $? 0 "rule4 dscp udp connect"
592 nettest -q -B -t 5 -N $testns -O $peerns -Q 0xfc \
594 log_test $? 0 "rule4 dscp tcp connect"
596 nettest -q -B -t 5 -N $testns -O $peerns -D -U -Q 0xf4 \
600 nettest -q -B -t 5 -N $testns -O $peerns -Q 0xf4 \
604 $IP -4 rule del dscp 0x3f table $RTABLE_PEER
614 usage: ${0##*/} OPTS
627 h) usage; exit 0;;
632 if [ "$(id -u)" -ne 0 ];then
657 help) echo "Test names: $TESTS"; exit 0;;