]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: add support for rule human-readable comments
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 26 Feb 2014 00:51:31 +0000 (01:51 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 27 Feb 2014 16:10:26 +0000 (17:10 +0100)
commitb2c827223395682ee231504385f692267d1a3bfb
tree6489771dd4cd450799c9d59b9ecde6bedbd45df0
parente61e363e5603352322b59f7c09c968392ba1cef6
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>
include/rule.h
src/netlink.c
src/netlink_delinearize.c
src/parser.y
src/rule.c
src/scanner.l