1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
# unspecified action by default is explicit at external interface -------------
tcc -xif:err 2>&1 >/dev/null | sed '/^#/d'
prio {
class if raw[0] != 0x45;
}
EOF
block eth0 egress
action 1 = class 1:1
action 0 = unspec
match 0:0:8=0x45 action 0
match action 1
# unspecified action can be made implicit at external interface ---------------
tcc -xif:err -Xx,nounspec 2>&1 >/dev/null | sed '/^#/d'
prio {
class if raw[0] != 0x45;
}
EOF
block eth0 egress
action 1 = class 1:1
action 3 = class 1:3
action 2 = class 1:2
match 0:0:8=0x45 0:11:4=0x0 action 2
match 0:0:8=0x45 0:11:4=0x1 action 3
match 0:0:8=0x45 0:11:4=0x2 action 2
match 0:0:8=0x45 0:11:4=0x3 action 2
match 0:0:8=0x45 0:11:4=0x4 action 3
match 0:0:8=0x45 0:11:4=0x5 action 3
match 0:0:8=0x45 0:11:4=0x6 action 3
match 0:0:8=0x45 0:11:4=0x7 action 3
match 0:0:8=0x45 0:11:4=0x8 action 1
match 0:0:8=0x45 0:11:4=0x9 action 1
match 0:0:8=0x45 0:11:4=0xA action 1
match 0:0:8=0x45 0:11:4=0xB action 1
match 0:0:8=0x45 0:11:4=0xC action 2
match 0:0:8=0x45 0:11:4=0xD action 2
match 0:0:8=0x45 0:11:4=0xE action 2
match 0:0:8=0x45 action 2
match action 1
# unspecified action can be suppressed at external interface (1/2) ------------
tcc -xif:err 2>&1 >/dev/null | sed '/^#/d'
prio {
class if raw[0] != 0x45;
class if 1;
}
EOF
block eth0 egress
action 1 = class 1:1
action 2 = class 1:2
match 0:0:8=0x45 action 2
match action 1
# unspecified action can be suppressed at external interface (2/2) ------------
tcc -xif:err -Xx,nounspec 2>&1 >/dev/null | sed '/^#/d'
prio {
class if raw[0] != 0x45;
class if 1;
}
EOF
block eth0 egress
action 1 = class 1:1
action 2 = class 1:2
match 0:0:8=0x45 action 2
match action 1
|