]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxt_conntrack: improve error message on parsing violation
authorTom Eastep <teastep@shorewall.net>
Thu, 18 Aug 2011 22:11:16 +0000 (15:11 -0700)
committerJan Engelhardt <jengelh@medozas.de>
Sat, 27 Aug 2011 16:36:19 +0000 (18:36 +0200)
commit3412bd0bfb8b8bac9834cbfd3392b3d5487133bf
tree8c95893d0b46454679727cf0d4f43a24c5663982
parentfdb2a27825e558393fb715374c07873830d4d149
libxt_conntrack: improve error message on parsing violation

Tom Eastep noted:

$ iptables -A foo -m conntrack --ctorigdstport 22
iptables v1.4.12: conntrack rev 2 does not support port ranges
Try `iptables -h' or 'iptables --help' for more information.

Commit v1.4.12-41-g1ad6407 takes care of the actual cause of the bug,
but let's include Tom's patch nevertheless for the better error
message in case one actually does specify a range with rev 2.

References: http://marc.info/?l=netfilter-devel&m=131370592105298&w=2
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libxt_conntrack.c