diff mbox series

parser: allow classid as set key

Message ID 82fb1bfd1c56c2410a59c3c207393fa5@spoje.net
State Accepted
Delegated to: Pablo Neira
Headers show
Series parser: allow classid as set key | expand

Commit Message

Tomas Mudrunka Nov. 4, 2017, 1:58 p.m. UTC
Hello,
can you please include this patch in nftables?

THX.
diff mbox series

Patch

parser: allow classid as set key

From: Arturo Borrero Gonzalez <arturo@netfilter.org>

Allow TC classid as set key.

Signed-off-by: Arturo Borrero Gonzalez <arturo@netfilter.org>
Reported-by: Tomas Mudrunka <mudrunka@spoje.net>
Tested-by: Tomas Mudrunka <mudrunka@spoje.net>
---
 src/parser_bison.y |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/parser_bison.y b/src/parser_bison.y
index 7016f5b..2918875 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -1545,6 +1545,7 @@  type_identifier		:	STRING	{ $$ = $1; }
 			|	MARK	{ $$ = xstrdup("mark"); }
 			|	DSCP	{ $$ = xstrdup("dscp"); }
 			|	ECN	{ $$ = xstrdup("ecn"); }
+			|	CLASSID { $$ = xstrdup("classid"); }
 			;
 
 hook_spec		:	TYPE		STRING		HOOK		STRING		dev_spec	PRIORITY	prio_spec