]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/m_ipt.c
tc: let m_ipt work with new iptables API headers
authorAlexander Aring <aar@pengutronix.de>
Sun, 29 May 2016 18:27:13 +0000 (20:27 +0200)
committerStephen Hemminger <shemming@brocade.com>
Wed, 15 Jun 2016 01:03:30 +0000 (18:03 -0700)
commit9b32f89693ef030785196987c29e3ebb2632834b
tree90e268f4d0b46255fd2f12af643e504d0e96b2b5
parent4b83a08c280fcd14ed8e775adc7604ea13c1252f
tc: let m_ipt work with new iptables API headers

Since commit 5cd1adb ("Update to current iptables headers") the build
with m_ipt.o and the following config will fail:

TC_CONFIG_XT:=n
TC_CONFIG_XT_OLD:=n
TC_CONFIG_XT_OLD_H:=n

This patch renames "iptables_target" to "xtables_target" and some other
things which gets renamed and I noticed while reading iptables git log.
Functions which are not used in m_ipt.c and not exported by the header
are removed, if they still used in m_ipt.c I added a static to the function.

Reported-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Signed-off-by: Alexander Aring <aar@pengutronix.de>
tc/m_ipt.c