summaryrefslogtreecommitdiffstats
path: root/tests/regression/inet/comp.t
blob: 32db32b256c30ea8ac0acc5fbf03a35dea6b4752 (plain)
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
*ip;test-ip4
*ip6;test-ip6
*inet;test-inet

:input;type filter hook input priority 0

# BUG: Do no list table.
- comp nexthdr esp;ok;comp nexthdr 50
comp nexthdr != esp;ok

- comp nexthdr {esp, ah, comp, udp, udplite, tcp, tcp, dccp, sctp};ok
# comp flags ## 8-bit field.  Reserved for future use.  MUST be set to zero.

# Bug comp flags: to list. List the decimal value.
comp flags 0x00;ok
comp flags != 0x23;ok
comp flags 0x33-0x45;ok
comp flags != 0x33-0x45;ok
comp flags {0x33, 0x55, 0x67, 0x88};ok
- comp flags != {0x33, 0x55, 0x67, 0x88};ok
comp flags { 0x33-0x55};ok
- comp flags != { 0x33-0x55};ok

comp cpi 22;ok
comp cpi != 233;ok
comp cpi 33-45;ok;comp cpi >= 33 comp cpi <= 45
comp cpi != 33-45;ok;comp cpi < 33 comp cpi > 45
comp cpi {33, 55, 67, 88};ok
- comp cpi != {33, 55, 67, 88};ok
comp cpi { 33-55};ok
- comp cpi != { 33-55};ok