diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2014-04-16 18:43:17 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-04-25 17:45:33 +0200 |
commit | f9563c0feb24d40036467ac8a3b7e9f41950df1e (patch) | |
tree | f08d0f160ef638cca8a6734ada140cccab208a6e /src/scanner.l | |
parent | 1be55ff3a9866cbee8fcde8d8f9425cb3d8af05d (diff) |
src: add events reporting
This patch adds a basic events reporting option to nft.
The syntax is:
% nft monitor [new|destroy] [tables|chains|rules|sets|elements] [xml|json]
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l index 69d6b8f8..801c0303 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -232,12 +232,16 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "table" { return TABLE; } "tables" { return TABLES; } "chain" { return CHAIN; } +"chains" { return CHAINS; } "rule" { return RULE; } +"rules" { return RULES; } "sets" { return SETS; } "set" { return SET; } "element" { return ELEMENT; } "map" { return MAP; } "handle" { return HANDLE; } +"new" { return NEW; } +"destroy" { return DESTROY; } "accept" { return ACCEPT; } "drop" { return DROP; } @@ -256,6 +260,7 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "flush" { return FLUSH; } "rename" { return RENAME; } "export" { return EXPORT; } +"monitor" { return MONITOR; } "position" { return POSITION; } "comment" { return COMMENT; } |