From d23234b11b76c4d3f2be5f844e6dd2a93bac04fb Mon Sep 17 00:00:00 2001 From: Ana Rey Date: Tue, 2 Sep 2014 20:37:17 +0200 Subject: src: Add devgroup support in meta expresion This adds device group support in meta expresion. The new attributes of meta are "iffgroup" and "oifgroup" - iffgroup: Match device group of incoming device. - oifgroup: Match device group of outcoming device. Example of use: nft add rule ip test input meta iifgroup 2 counter nft add rule ip test output meta oifgroup 2 counter The kernel and libnftnl support were added in these commits: netfilter: nf_tables: add devgroup support in meta expresion src: meta: Add devgroup support to meta expresion Signed-off-by: Ana Rey Signed-off-by: Pablo Neira Ayuso --- src/scanner.l | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/scanner.l') diff --git a/src/scanner.l b/src/scanner.l index b7a00b4f..929dbf6e 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -417,6 +417,8 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "obriport" { return OBRIPORT; } "pkttype" { return PKTTYPE; } "cpu" { return CPU; } +"iifgroup" { return IIFGROUP; } +"oifgroup" { return OIFGROUP; } "ct" { return CT; } "direction" { return DIRECTION; } -- cgit v1.2.3