summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/ah.t
blob: 945db99621ffeecd9b4af876f78ae8fc1a30c268 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
:input;type filter hook input priority 0
:ingress;type filter hook ingress device lo priority 0

*ip;test-ip4;input
*ip6;test-ip6;input
*inet;test-inet;input
*netdev;test-netdev;ingress

- ah nexthdr esp;ok
- ah nexthdr ah;ok
- ah nexthdr comp;ok
- ah nexthdr udp;ok
- ah nexthdr udplite;ok
- ah nexthdr tcp;ok
- ah nexthdr dccp;ok
- ah nexthdr sctp;ok

- ah nexthdr { esp, ah, comp, udp, udplite, tcp, dccp, sctp};ok;ah nexthdr { 6, 132, 50, 17, 136, 33, 51, 108}
- ah nexthdr != { esp, ah, comp, udp, udplite, tcp, dccp, sctp};ok

ah hdrlength 11-23;ok
ah hdrlength != 11-23;ok
ah hdrlength { 11-23};ok
ah hdrlength != { 11-23};ok
ah hdrlength {11, 23, 44 };ok
ah hdrlength != {11, 23, 44 };ok

ah reserved 22;ok
ah reserved != 233;ok
ah reserved 33-45;ok
ah reserved != 33-45;ok
ah reserved {23, 100};ok
ah reserved != {23, 100};ok
ah reserved { 33-55};ok
ah reserved != { 33-55};ok

ah spi 111;ok
ah spi != 111;ok
ah spi 111-222;ok
ah spi != 111-222;ok
ah spi {111, 122};ok
ah spi != {111, 122};ok
ah spi { 111-122};ok
ah spi != { 111-122};ok

# sequence
ah sequence 123;ok
ah sequence != 123;ok
ah sequence {23, 25, 33};ok
ah sequence != {23, 25, 33};ok
ah sequence { 23-33};ok
ah sequence != { 23-33};ok
ah sequence 23-33;ok
ah sequence != 23-33;ok