Skip to contentSkip to conversation

parser: fix inconsistency in monitor options

PATCH New Arturo Borrero Gonzalez 1 participant 1 message May 14, 2014 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parser: fix inconsistency in monitor options

The keyword for monitoring chains events is 'chains'. For rules, 'rules'.

---
 src/parser.y |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/parser.y +2 -2
index 9c20737..b9916db 100644
@@ -810,7 +810,7 @@ monitor_flags		:	/* empty */
 			}
 			|	NEW 	TABLES 	{	$$ |= (1 << NFT_MSG_NEWTABLE); }
 			|	DESTROY	TABLES	{	$$ |= (1 << NFT_MSG_DELTABLE); }
-			|	CHAIN
+			|	CHAINS
 			{
 				$$ |= (1 << NFT_MSG_NEWCHAIN);	$$ |= (1 << NFT_MSG_DELCHAIN);
 			}
@@ -822,7 +822,7 @@ monitor_flags		:	/* empty */
 			}
 			|	NEW	SETS 	{ 	$$ |= (1 << NFT_MSG_NEWSET); }
 			|	DESTROY SETS	{	$$ |= (1 << NFT_MSG_DELSET); }
-			|	RULE
+			|	RULES
 			{
 				$$ |= (1 << NFT_MSG_NEWRULE);	$$ |= (1 << NFT_MSG_DELRULE);
 			}