From 8a7f6de536408336770e352cde939f8cb09a644d Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 27 Oct 2016 14:31:34 +0200 Subject: 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 Acked-by: Pablo Neira Ayuso --- tests/py/any/meta.t.payload | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/py/any/meta.t.payload') 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 ] -- cgit v1.2.3