File: not

package info (click to toggle)
tcng 10b-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,644 kB
  • ctags: 2,515
  • sloc: ansic: 19,040; pascal: 4,640; yacc: 2,619; sh: 1,914; perl: 1,546; lex: 772; makefile: 756
file content (53 lines) | stat: -rw-r--r-- 1,334 bytes parent folder | download | duplicates (5)
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
# not: basic negation ---------------------------------------------------------
tcc -xif:err 2>&1 >/dev/null | sed '/^#/d'
prio {
    class if !(raw[0] == 1) && drop;
    class if 1;
}
EOF
block eth0 egress
action 0 = drop
action 2 = class 1:2
match 0:0:8=0x01 action 2
match action 0
# not: negation of single && expression ---------------------------------------
tcc -xif:err 2>&1 >/dev/null | sed '/^#/d'
prio {
    class if !(raw[0] == 1 && raw[1] == 2);
    class if 1;
}
EOF
block eth0 egress
action 1 = class 1:1
action 2 = class 1:2
match 0:0:16=0x0102 action 2
match action 1
# not: negation of single || expression ---------------------------------------
tcc -xif:err 2>&1 >/dev/null | sed '/^#/d'
prio {
    class if !(raw[0] == 1 || raw[1] == 2);
    class if 1;
}
EOF
block eth0 egress
action 1 = class 1:1
action 2 = class 1:2
match 0:0:8=0x01 action 2
match 0:8:8=0x02 action 2
match action 1
# not: negation of combined expressions ---------------------------------------
tcc -xif:err 2>&1 >/dev/null | sed '/^#/d'
prio {
    class if !(raw[0] == 1 && raw[1] == 2);
    class if raw[2] == 3 && raw[3] != 4;
    class if 1;
}
EOF
block eth0 egress
action 1 = class 1:1
action 2 = class 1:2
action 3 = class 1:3
match 0:0:32=0x01020304 action 3
match 0:0:24=0x010203 action 2
match 0:0:16=0x0102 action 3
match action 1