diff options
author | Phil Sutter <phil@nwl.cc> | 2022-06-23 16:28:42 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2022-06-27 12:21:46 +0200 |
commit | ed2426bccd3ea954adc8a010bf1736e8ed6a81b9 (patch) | |
tree | 8100068574de77f6b82bb4fe2339b48e2924f4d2 /tests/py/inet/ipsec.t.payload | |
parent | 27107b4932b1bd1a39c21e0d7865f3bf220a3857 (diff) |
tests/py: Add a test for failing ipsec after counter
This is a bug in parser/scanner due to scoping:
| Error: syntax error, unexpected string, expecting saddr or daddr
| add rule ip ipsec-ip4 ipsec-forw counter ipsec out ip daddr 192.168.1.2
| ^^^^^
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/inet/ipsec.t.payload')
-rw-r--r-- | tests/py/inet/ipsec.t.payload | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/py/inet/ipsec.t.payload b/tests/py/inet/ipsec.t.payload index c46a2263..9648255d 100644 --- a/tests/py/inet/ipsec.t.payload +++ b/tests/py/inet/ipsec.t.payload @@ -37,3 +37,9 @@ ip ipsec-ip4 ipsec-forw [ xfrm load out 0 saddr6 => reg 1 ] [ cmp eq reg 1 0x0000adde 0x00000000 0x00000000 0xedfe0000 ] +# counter ipsec out ip daddr 192.168.1.2 +ip ipsec-ip4 ipsec-forw + [ counter pkts 0 bytes 0 ] + [ xfrm load out 0 daddr4 => reg 1 ] + [ cmp eq reg 1 0x0201a8c0 ] + |