]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: NETMAP: fix iptables-save output
authorFlorian Westphal <fw@strlen.de>
Fri, 17 Jun 2016 12:27:39 +0000 (14:27 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 17 Jun 2016 15:42:58 +0000 (17:42 +0200)
commit5d7cbf6e6c66d20129320a9b57ce56c868542816
tree6ef70d9e838b3b835d9c25f40433a885e0fc6ff3
parentc513cc3dd10231f267548d644dcb7632516a2348
extensions: NETMAP: fix iptables-save output

NETMAP_print is also used by its .save hook so this change
broke iptables-save output.

Revert the patch, rename NETMAP_print to __NETMAP_print and
use that as the workhorse for both xtables -L and xtables-save.

The addition of the 'to' prefix is done in the .print hook only.

Reported-by: Shivani Bhardwaj <shivanib134@gmail.com>
Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
Fixes: 90becf12bd5823b6d59d32d ("extensions: NETMAP: add ' to:' prefix when printing NETMAP target")
Signed-off-by: Florian Westphal <fw@strlen.de>
extensions/libip6t_NETMAP.c
extensions/libipt_NETMAP.c