summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/udplite.t
blob: 7c22acb977f3ed71541e8ddc22a699ca9fb8a3a6 (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
: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

udplite sport 80 accept;ok
udplite sport != 60 accept;ok
udplite sport 50-70 accept;ok
udplite sport != 50-60 accept;ok
udplite sport { 49, 50} drop;ok
udplite sport != { 49, 50} accept;ok
udplite sport { 12-40};ok
udplite sport != { 12-40};ok

udplite dport 80 accept;ok
udplite dport != 60 accept;ok
udplite dport 70-75 accept;ok
udplite dport != 50-60 accept;ok
udplite dport { 49, 50} drop;ok
udplite dport != { 49, 50} accept;ok
udplite dport { 70-75} accept;ok
udplite dport != { 70-75} accept;ok

- udplite csumcov 6666;ok
- udplite csumcov != 6666;ok
- udplite csumcov 50-65 accept;ok
- udplite csumcov != 50-65 accept;ok
- udplite csumcov { 50, 65} accept;ok
- udplite csumcov != { 50, 65} accept;ok
- udplite csumcov { 35-50};ok
- udplite csumcov != { 35-50};ok

udplite checksum 6666 drop;ok
udplite checksum != { 444, 555} accept;ok
udplite checksum 22;ok
udplite checksum != 233;ok
udplite checksum 33-45;ok
udplite checksum != 33-45;ok
udplite checksum { 33, 55, 67, 88};ok
udplite checksum != { 33, 55, 67, 88};ok
udplite checksum { 33-55};ok
udplite checksum != { 33-55};ok