diff mbox

[nft] parser: fix inconsistency in monitor options

Message ID 20140514152429.24350.45632.stgit@nfdev.cica.es
State Superseded
Headers show

Commit Message

Arturo Borrero May 14, 2014, 3:24 p.m. UTC
The keyword for monitoring chains events is 'chains'. For rules, 'rules'.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
---
 src/parser.y |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/src/parser.y b/src/parser.y
index 9c20737..b9916db 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -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);
 			}