]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: fix parsing of dotted network mask format
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 May 2013 13:01:12 +0000 (15:01 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 May 2013 11:14:10 +0000 (13:14 +0200)
commit33e262d4f80afcc464014f28012491bf0c5567ef
tree45cf3f12dd7063007ea05fede4cfccb9e16281d3
parentccbf6b6448a4210432b76fd4660798705b05f8c4
libxtables: fix parsing of dotted network mask format

After upgrade from iptables 1.4.8 to 1.4.18 netmask parsing got broken:

-A foo -m policy --mode tunnel --dir in --tunnel-src 192.168.123.0/255.255.255.0 -j RETURN

With iptables 1.4.18:
iptables-restore v1.4.18: policy: bad value for option "--tunnel-src", or out of range (0-32)

This was probably broken by the augmented parser.

Reported-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
libxtables/xtoptions.c