]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: devgroup: fix showing and saving of dst-group
authorAna Rey <anarey@gmail.com>
Thu, 30 Oct 2014 16:26:26 +0000 (17:26 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 4 Nov 2014 13:39:24 +0000 (14:39 +0100)
commitfd7ff7074f6f189872a485fd02df2cc50e1e4cb4
tree0c095bbbf2607af2ee52c1497a4cdf3cb083d582
parent7bc5f6c133bf38c696dc8c14cb479167711437c2
extensions: devgroup: fix showing and saving of dst-group

Closes bugzilla: https://bugzilla.netfilter.org/show_bug.cgi?id=985

The --dst-group parameter in devgroup extensions lists and saves
incorrectly its value. --dst-group always shows "0x0/0x0".

This is an example:

 # iptables -I FORWARD -m devgroup --dst-group 200 -j ACCEPT

 # iptables -L FORWARD
 Chain FORWARD (policy ACCEPT)
 target     prot opt source               destination
 ACCEPT     all  --  anywhere             anywhere     src-group 0x64 dst-group 0x0/0x0

 # iptables -S FORWARD
 -P FORWARD ACCEPT
 -A FORWARD -m devgroup --dst-group 0x0/0x0 -j ACCEPT

Reporte-by: Axinchan <axinchan@cnrouter.com>
Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_devgroup.c