diff options
author | Florian Westphal <fw@strlen.de> | 2016-10-27 14:31:34 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2016-10-27 19:32:58 +0200 |
commit | 8a7f6de536408336770e352cde939f8cb09a644d (patch) | |
tree | a807aae5233d69571d010b08f5e80ff40ec5faa1 /tests/py | |
parent | 0423caa91ad26e7a4a6d840566d25d48d3341fa1 (diff) |
meta: fix pkttype name and add 'other' symbol
'unicast' doesn't check for unicast packets; it checks for PACKET_HOST,
i.e. a packet coming in for this host.
A unicast address to some other machine (e.g. because nic is
in promisc mode) will have PACKET_OTHER.
So at best this is misleading, so this patch changes it
to 'host'. The unicast entry is retained for compat purpose.
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py')
-rw-r--r-- | tests/py/any/meta.t | 4 | ||||
-rw-r--r-- | tests/py/any/meta.t.payload | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/py/any/meta.t b/tests/py/any/meta.t index a1249e8b..76ce06be 100644 --- a/tests/py/any/meta.t +++ b/tests/py/any/meta.t @@ -152,10 +152,10 @@ meta skgid 3000;ok;skgid 3000 meta rtclassid "cosmos";ok;rtclassid "cosmos" meta pkttype broadcast;ok;pkttype broadcast -meta pkttype unicast;ok;pkttype unicast +meta pkttype host;ok;pkttype host meta pkttype multicast;ok;pkttype multicast meta pkttype != broadcast;ok;pkttype != broadcast -meta pkttype != unicast;ok;pkttype != unicast +meta pkttype != host;ok;pkttype != host meta pkttype != multicast;ok;pkttype != multicast meta pkttype broadcastttt;fail meta pkttype { broadcast, multicast} accept;ok diff --git a/tests/py/any/meta.t.payload b/tests/py/any/meta.t.payload index 65d1cd42..f000bc80 100644 --- a/tests/py/any/meta.t.payload +++ b/tests/py/any/meta.t.payload @@ -530,7 +530,7 @@ ip test-ip4 input [ meta load pkttype => reg 1 ] [ cmp eq reg 1 0x00000001 ] -# meta pkttype unicast +# meta pkttype host ip test-ip4 input [ meta load pkttype => reg 1 ] [ cmp eq reg 1 0x00000000 ] @@ -545,7 +545,7 @@ ip test-ip4 input [ meta load pkttype => reg 1 ] [ cmp neq reg 1 0x00000001 ] -# meta pkttype != unicast +# meta pkttype != host ip test-ip4 input [ meta load pkttype => reg 1 ] [ cmp neq reg 1 0x00000000 ] |