diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-02-26 01:51:31 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-02-27 17:10:26 +0100 |
commit | b2c827223395682ee231504385f692267d1a3bfb (patch) | |
tree | 6489771dd4cd450799c9d59b9ecde6bedbd45df0 /src/scanner.l | |
parent | e61e363e5603352322b59f7c09c968392ba1cef6 (diff) |
src: add support for rule human-readable comments
This patch adds support for human-readable comments:
nft add rule filter input accept comment \"accept all traffic\"
Note that comments *always* come at the end of the rule. This uses
the new data area that allows you to attach information to the rule
via netlink.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l index 45c64763..47c5933c 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -258,6 +258,7 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "export" { return EXPORT; } "position" { return POSITION; } +"comment" { return COMMENT; } "constant" { return CONSTANT; } "interval" { return INTERVAL; } |