summaryrefslogtreecommitdiffstats
path: root/tests/py/ip
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/ip
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/ip')
-rw-r--r--tests/py/ip/reject.t.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/py/ip/reject.t.json b/tests/py/ip/reject.t.json
index c0d7791b..3e1d28de 100644
--- a/tests/py/ip/reject.t.json
+++ b/tests/py/ip/reject.t.json
@@ -75,6 +75,16 @@
}
]
+# reject with icmp 3
+[
+ {
+ "reject": {
+ "expr": "port-unreachable",
+ "type": "icmp"
+ }
+ }
+]
+
# mark 0x80000000 reject with tcp reset
[
{