summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorAna Rey <anarey@gmail.com>2014-08-05 20:33:39 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-08-24 14:19:18 +0200
commit97f0ffc9efa7a0c7ecfbbfacf1fb066a2a350ad8 (patch)
tree5d0ed6f3b7eac8bedf30abb7532c68474e8ccfd1 /src/scanner.l
parent6f285f202d6c41db1d9071c0964b5d062a522b4e (diff)
src: Add support for pkttype in meta expresion
If you want to match the pkttype field of the skbuff, you have to use the following syntax: nft add rule ip filter input meta pkttype PACKET_TYPE where PACKET_TYPE can be: unicast, broadcast and multicast. Joint work with Alvaro Neira Ayuso <alvaroneay@gmail.com> Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com> Signed-off-by: Ana Rey <anarey@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l
index 4eec92f5..ca6db6e1 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -415,6 +415,7 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr})
"rtclassid" { return RTCLASSID; }
"ibriport" { return IBRIPORT; }
"obriport" { return OBRIPORT; }
+"pkttype" { return PKTTYPE; }
"ct" { return CT; }
"direction" { return DIRECTION; }