summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-10-27 14:31:34 +0200
committerFlorian Westphal <fw@strlen.de>2016-10-27 19:32:58 +0200
commit8a7f6de536408336770e352cde939f8cb09a644d (patch)
treea807aae5233d69571d010b08f5e80ff40ec5faa1 /src
parent0423caa91ad26e7a4a6d840566d25d48d3341fa1 (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 'src')
-rw-r--r--src/meta.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/meta.c b/src/meta.c
index 34f9ee8e..bd1e4f28 100644
--- a/src/meta.c
+++ b/src/meta.c
@@ -327,9 +327,11 @@ static const struct datatype gid_type = {
static const struct symbol_table pkttype_type_tbl = {
.symbols = {
- SYMBOL("unicast", PACKET_HOST),
+ SYMBOL("host", PACKET_HOST),
+ SYMBOL("unicast", PACKET_HOST), /* backwards compat */
SYMBOL("broadcast", PACKET_BROADCAST),
SYMBOL("multicast", PACKET_MULTICAST),
+ SYMBOL("other", PACKET_OTHERHOST),
SYMBOL_LIST_END,
},
};