]> git.ipfire.org Git - thirdparty/iptables.git/commit
iptables: always print mask in iptables-save
authorJan Engelhardt <jengelh@medozas.de>
Sun, 25 Nov 2007 15:27:56 +0000 (15:27 +0000)
committerPatrick McHardy <kaber@trash.net>
Sun, 25 Nov 2007 15:27:56 +0000 (15:27 +0000)
commitdb09b39196b537f3898b9454a5758e6540f9f121
tree3c5544d16f5142c38554dd34a88afdbb02712965
parent725ebb1ca4e93ad11b38ee37338f92600454344a
iptables: always print mask in iptables-save

iptables prints the mask as a prefix length if it is valid;
This patch makes iptables-save do the same.

Also, iptables-save will always print "/32" in the "-s addr/32"
case now. This reduces the amount of code external parsing scripts
need to provide to properly parse iptables-save output.

ip6tables-save already does the right thing, so no change there.

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
iptables-save.c