Keep the old tc/ipt/xt module for compatibility.
Move the file and rename the configure flags. The file is being kept around for iptables < 1.4.5 compatibility. Signed-off-by: Andreas Henriksson <andreas@fatal.se>
This commit is contained in:
parent
7a96e19977
commit
80d689d055
|
|
@ -53,7 +53,7 @@ gcc -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL -ldl >/dev/null 2>&1
|
||||||
|
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "TC_CONFIG_XT:=y" >>Config
|
echo "TC_CONFIG_XT_OLD:=y" >>Config
|
||||||
echo "using xtables seems no need for internal.h"
|
echo "using xtables seems no need for internal.h"
|
||||||
else
|
else
|
||||||
echo "failed test 2"
|
echo "failed test 2"
|
||||||
|
|
@ -86,7 +86,7 @@ gcc -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL -ldl >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "using xtables instead of iptables (need for internal.h)"
|
echo "using xtables instead of iptables (need for internal.h)"
|
||||||
echo "TC_CONFIG_XT_H:=y" >>Config
|
echo "TC_CONFIG_XT_OLD_H:=y" >>Config
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "failed test 3 using iptables"
|
echo "failed test 3 using iptables"
|
||||||
|
|
|
||||||
15
tc/Makefile
15
tc/Makefile
|
|
@ -48,12 +48,17 @@ ifeq ($(TC_CONFIG_XT),y)
|
||||||
TCMODULES += m_xt.o
|
TCMODULES += m_xt.o
|
||||||
LDLIBS += -lxtables
|
LDLIBS += -lxtables
|
||||||
else
|
else
|
||||||
ifeq ($(TC_CONFIG_XT_H),y)
|
ifeq ($(TC_CONFIG_XT_OLD),y)
|
||||||
CFLAGS += -DTC_CONFIG_XT_H
|
TCMODULES += m_xt_old.o
|
||||||
TCMODULES += m_xt.o
|
LDLIBS += -lxtables
|
||||||
LDLIBS += -lxtables
|
|
||||||
else
|
else
|
||||||
TCMODULES += m_ipt.o
|
ifeq ($(TC_CONFIG_XT_OLD_H),y)
|
||||||
|
CFLAGS += -DTC_CONFIG_XT_H
|
||||||
|
TCMODULES += m_xt_old.o
|
||||||
|
LDLIBS += -lxtables
|
||||||
|
else
|
||||||
|
TCMODULES += m_ipt.o
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue