]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
iproute2: bump to version 2.6.39
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 21 Jul 2011 17:54:24 +0000 (14:54 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 21 Jul 2011 20:49:11 +0000 (22:49 +0200)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/iproute2/iproute2-xt-v6.patch [new file with mode: 0644]
package/iproute2/iproute2.mk

diff --git a/package/iproute2/iproute2-xt-v6.patch b/package/iproute2/iproute2-xt-v6.patch
new file mode 100644 (file)
index 0000000..4856e36
--- /dev/null
@@ -0,0 +1,39 @@
+From: Andreas Henriksson <andreas@fatal.se>
+Forwarded: yes
+Subject: [PATCH] iproute2: Fix building xt module against xtables version 6
+
+
+diff --git a/tc/m_xt.c b/tc/m_xt.c
+index 651a59e..13bf19f 100644
+--- a/tc/m_xt.c
++++ b/tc/m_xt.c
+@@ -160,9 +160,13 @@ static int parse_ipt(struct action_util *a,int *argc_p,
+                                       return -1;
+                               }
+                               tcipt_globals.opts =
+-                                  xtables_merge_options(tcipt_globals.opts,
+-                                                        m->extra_opts,
+-                                                        &m->option_offset);
++                                  xtables_merge_options(
++#if (XTABLES_VERSION_CODE >= 6)
++                                      tcipt_globals.orig_opts,
++#endif
++                                      tcipt_globals.opts,
++                                      m->extra_opts,
++                                      &m->option_offset);
+                       } else {
+                               fprintf(stderr," failed to find target %s\n\n", optarg);
+                               return -1;
+@@ -305,7 +309,11 @@ print_ipt(struct action_util *au,FILE * f, struct rtattr *arg)
+                       }
+                       tcipt_globals.opts =
+-                          xtables_merge_options(tcipt_globals.opts,
++                          xtables_merge_options(
++#if (XTABLES_VERSION_CODE >= 6)
++                                                tcipt_globals.orig_opts,
++#endif
++                                                tcipt_globals.opts,
+                                                 m->extra_opts,
+                                                 &m->option_offset);
+               } else {
index 630fab4c5af336eaed6fe0153b33fbe92afd5e26..fd78b3c45dee3cb5c475b0e9f348e742db6a2ab1 100644 (file)
@@ -4,8 +4,7 @@
 #
 #############################################################
 
-IPROUTE2_VERSION = 2.6.38
-IPROUTE2_SOURCE = iproute2-$(IPROUTE2_VERSION).tar.bz2
+IPROUTE2_VERSION = 2.6.39
 IPROUTE2_SITE = http://devresources.linuxfoundation.org/dev/iproute2/download
 IPROUTE2_TARGET_SBINS = ctstat genl ifstat ip lnstat nstat routef routel rtacct rtmon rtpr rtstat ss tc