]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: libxt_NFLOG: display nflog-size even if it is zero
authorLiping Zhang <liping.zhang@spreadtrum.com>
Mon, 18 Jul 2016 14:14:27 +0000 (22:14 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 19 Jul 2016 18:18:36 +0000 (20:18 +0200)
commit4bde4cc6721e460a1896bf4be2b44fb2ed05b240
tree5f965255c1f5f1e5819c680ba3d29243b093382a
parentcc7e0982aeb8c2e30b669457d5c062e34f1085be
extensions: libxt_NFLOG: display nflog-size even if it is zero

The following iptables rules have the different semantics:
  # iptables -A INPUT -j NFLOG
  # iptables -A INPUT -j NFLOG --nflog-size 0

But they are all displayed as "-A INPUT -j NFLOG", so if
the user input the following commands, the original semantics
will be broken.
  # iptables-save | iptables-restore

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_NFLOG.c