summaryrefslogtreecommitdiffstats
path: root/tests/regression/bridge/reject.t
diff options
context:
space:
mode:
authorAlvaro Neira <alvaroneay@gmail.com>2014-10-23 19:36:56 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-10-24 12:00:57 +0200
commitc00d1287c088a6694b427c5143c98c028677c4bb (patch)
tree3383d8eccb9a0ed8f36b7ff8e6967c893c783cad /tests/regression/bridge/reject.t
parent3e6ab2b33514228f892ba6c8389e40c4e82bc980 (diff)
evaluate: reject: check the context in reject without reason for bridge and inet tables
In rules like: nft add rule inet filter input reject or nft add rule bridge filter input reject we use icmpx to reject it. But if we have network context, we also use type of reject. With this patch, we check the network context. If we don't have context, we still use icmpx. However, if we have rules with network context like: nft add rule inet meta nfproto ipv4 reject or nft add rule bridge ether type ipv6 reject We are going to use icmp or icmpv6 to reject it taking into account the network context. Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/regression/bridge/reject.t')
-rw-r--r--tests/regression/bridge/reject.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/regression/bridge/reject.t b/tests/regression/bridge/reject.t
index 11a0f1c5..43e54611 100644
--- a/tests/regression/bridge/reject.t
+++ b/tests/regression/bridge/reject.t
@@ -18,6 +18,9 @@ reject with icmpv6 type port-unreachable;ok;ether type ip6 reject
ip protocol tcp reject with tcp reset;ok;ip protocol 6 reject with tcp reset
reject;ok
+ether type ip reject;ok
+ether type ip6 reject;ok
+
reject with icmpx type host-unreachable;ok
reject with icmpx type no-route;ok
reject with icmpx type admin-prohibited;ok