]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
Keep the old tc/ipt/xt module for compatibility.
authorAndreas Henriksson <andreas@fatal.se>
Wed, 2 Dec 2009 15:11:21 +0000 (16:11 +0100)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Sat, 26 Dec 2009 18:09:26 +0000 (10:09 -0800)
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>
configure
tc/Makefile
tc/m_xt_old.c [moved from tc/m_xt.c with 100% similarity]

index df40370a5cfd15f33f39412f267b51de3229d502..f3b79b258f0caf6367c5ee694719b15ed2e30701 100755 (executable)
--- a/configure
+++ b/configure
@@ -53,7 +53,7 @@ gcc -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL -ldl >/dev/null 2>&1
 
 if [ $? -eq 0 ]
 then
-       echo "TC_CONFIG_XT:=y" >>Config
+       echo "TC_CONFIG_XT_OLD:=y" >>Config
        echo "using xtables seems no need for internal.h"
 else
        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 ]
 then
        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
        echo "failed test 3 using iptables"
index 027055cf775ad157cd89c9e294b7965c111e5c7c..f3dd2b76e7a9b8f3055c823f32bdd139096c1c91 100644 (file)
@@ -48,12 +48,17 @@ ifeq ($(TC_CONFIG_XT),y)
   TCMODULES += m_xt.o
   LDLIBS += -lxtables
 else
-  ifeq ($(TC_CONFIG_XT_H),y)
+  ifeq ($(TC_CONFIG_XT_OLD),y)
+    TCMODULES += m_xt_old.o
+    LDLIBS += -lxtables
+  else
+    ifeq ($(TC_CONFIG_XT_OLD_H),y)
        CFLAGS += -DTC_CONFIG_XT_H
-       TCMODULES += m_xt.o
+       TCMODULES += m_xt_old.o
        LDLIBS += -lxtables
-  else
-  TCMODULES += m_ipt.o
+    else
+      TCMODULES += m_ipt.o
+    endif
   endif
 endif
 
similarity index 100%
rename from tc/m_xt.c
rename to tc/m_xt_old.c