tests: add test for dormant on/off/on bug
Florian Westphal
maintainerPATCH 1/1 tests: add test for dormant on/off/on bug
Disallow enabling/disabling a table in a single transaction. Make sure we still allow one update, either to dormant, or from active to dormant.
Reported-by "Lee, Cherie-Anne" <[email protected]>
Cc Bing-Jhong Billy Jheng <[email protected]>
Signed-off-by Florian Westphal <[email protected]>
--- .../transactions/dumps/table_onoff.nft | 8 ++++ .../shell/testcases/transactions/table_onoff | 44 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 tests/shell/testcases/transactions/dumps/table_onoff.nft create mode 100755 tests/shell/testcases/transactions/table_onoff
tests/shell/testcases/transactions/dumps/table_onoff.nft new file +8 -0
@@ -0,0 +1,8 @@ +table ip t { + flags dormant + + chain c { + type filter hook input priority filter; policy accept; + ip daddr 127.0.0.42 counter packets 0 bytes 0 + } +}
tests/shell/testcases/transactions/table_onoff new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
2.41.0