diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-03-29 12:07:17 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-03-29 12:44:08 +0200 |
commit | bcad476126f07691b7bc3657d1ade257d469e715 (patch) | |
tree | 9947cd2a6c6df2607b573ea0f631b24eef59a40b /tests/py/inet/vmap.t | |
parent | 214494aa7d9efaaba2f8c6e041355afc8662964c (diff) |
tests: py: add inet/vmap tests
Add a few tests with concatenations including raw and integer type
expressions.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet/vmap.t')
-rw-r--r-- | tests/py/inet/vmap.t | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/py/inet/vmap.t b/tests/py/inet/vmap.t new file mode 100644 index 00000000..0ac6e561 --- /dev/null +++ b/tests/py/inet/vmap.t @@ -0,0 +1,10 @@ +:input;type filter hook input priority 0 +:ingress;type filter hook ingress device lo priority 0 +:egress;type filter hook egress device lo priority 0 + +*inet;test-inet;input +*netdev;test-netdev;ingress,egress + +iifname . ip protocol . th dport vmap { "eth0" . tcp . 22 : accept, "eth1" . udp . 67 : drop };ok;iifname . ip protocol . th dport vmap { "eth0" . 6 . 22 : accept, "eth1" . 17 . 67 : drop } +ip saddr . @ih,32,32 { 1.1.1.1 . 0x14, 2.2.2.2 . 0x1e };ok +udp length . @th,160,128 vmap { 47-63 . 0xe373135363130333131303735353203 : accept };ok |