summaryrefslogtreecommitdiffstats
path: root/tests/py/inet
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2021-07-27 00:32:04 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-07-27 00:49:32 +0200
commitaf1a61c91cd7564a7c3fa685d408aa5b337d2c4b (patch)
tree2dd9771eb660fcaca75ca8509b694ef7461031b6 /tests/py/inet
parent8fd9f4db4b6db6d29708653f6a50502b48686cce (diff)
tests: py: missing json update for numeric reject with icmp numeric
Add missing tests to cover json support for reject with icmp numeric. Fixes: 1ab1fcbc19a8 ("parser_bison: parse number as reject icmp code") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet')
-rw-r--r--tests/py/inet/reject.t.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/py/inet/reject.t.json b/tests/py/inet/reject.t.json
index e60cd4f2..76cd1bf5 100644
--- a/tests/py/inet/reject.t.json
+++ b/tests/py/inet/reject.t.json
@@ -205,6 +205,16 @@
}
]
+# reject with icmpx 3
+[
+ {
+ "reject": {
+ "expr": "admin-prohibited",
+ "type": "icmpx"
+ }
+ }
+]
+
# meta nfproto ipv4 reject with icmp host-unreachable
[
{