iptables: Work around API breakage introduced in iptables 1.4.11
authorStefan Schmidt <stefan@datenfreihafen.org>
Wed, 20 Jul 2011 14:46:06 +0000 (16:46 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 21 Jul 2011 09:34:09 +0000 (11:34 +0200)
commitfd6684752ff6f59de47e07dd850d5e3366f3ef3d
treec190165ee8845a679067b9d523e273ef3ef5e6ca
parent0ef53353b51b2e1f35d0ab70e594c9197b1a7746
iptables: Work around API breakage introduced in iptables 1.4.11

The xtables_merge_options() paramter list got extended without version bump.
These clumsy #ifdef's make it possible to work with newer and older iptables
libraries. It got inspired from an iproute2 patch:
https://bugs.gentoo.org/attachment.cgi?id=276401

Once all distributions start to carry 1.4.11 it can be considered to bump the
minimum version for connman and remove these ifdef's.
src/iptables.c
tools/iptables-test.c