iproute2: update to 3.0.0
This commit is contained in:
parent
66ccae6fd9
commit
8b48f79d8e
@ -55,6 +55,7 @@ lrwxrwxrwx root/root usr/man/man8/rtstat.8.gz -> lnstat.8.gz
|
|||||||
-rw-r--r-- root/root usr/man/man8/tc-bfifo.8.gz
|
-rw-r--r-- root/root usr/man/man8/tc-bfifo.8.gz
|
||||||
-rw-r--r-- root/root usr/man/man8/tc-cbq-details.8.gz
|
-rw-r--r-- root/root usr/man/man8/tc-cbq-details.8.gz
|
||||||
-rw-r--r-- root/root usr/man/man8/tc-cbq.8.gz
|
-rw-r--r-- root/root usr/man/man8/tc-cbq.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/tc-choke.8.gz
|
||||||
-rw-r--r-- root/root usr/man/man8/tc-drr.8.gz
|
-rw-r--r-- root/root usr/man/man8/tc-drr.8.gz
|
||||||
-rw-r--r-- root/root usr/man/man8/tc-htb.8.gz
|
-rw-r--r-- root/root usr/man/man8/tc-htb.8.gz
|
||||||
lrwxrwxrwx root/root usr/man/man8/tc-pfifo.8.gz -> tc-bfifo.8.gz
|
lrwxrwxrwx root/root usr/man/man8/tc-pfifo.8.gz -> tc-bfifo.8.gz
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
8728d7bf903c320d98b52e96bf8cc3a6 iproute2-2.6.39.patch
|
ff959543ddde8644faddbc0ba1187876 iproute2-3.0.0.tar.gz
|
||||||
8a3b6bc77c2ecf752284aa4a6fc630a6 iproute2-2.6.39.tar.gz
|
|
||||||
0b01b0404718d043adf55cfa314c80bd net.iproute2
|
0b01b0404718d043adf55cfa314c80bd net.iproute2
|
||||||
|
@ -4,15 +4,14 @@
|
|||||||
# Depends on: db iptables
|
# Depends on: db iptables
|
||||||
|
|
||||||
name=iproute2
|
name=iproute2
|
||||||
version=2.6.39
|
version=3.0.0
|
||||||
release=1
|
release=1
|
||||||
source=(http://devresources.linuxfoundation.org/dev/iproute2/download/$name-$version.tar.gz \
|
source=(https://github.com/shemminger/iproute2/tarball/v3.0.0/$name-$version.tar.gz \
|
||||||
$name-$version.patch net.iproute2)
|
net.iproute2)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $name-$version
|
cd shemminger-$name-*
|
||||||
patch -p1 -i $SRC/$name-$version.patch
|
sed -i "/^CCOPTS/s|-O2|$CFLAGS|" Makefile
|
||||||
sed -i "s|-O2|$CFLAGS|" Makefile
|
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
make MANDIR=/usr/man DESTDIR=$PKG install
|
make MANDIR=/usr/man DESTDIR=$PKG install
|
||||||
|
@ -1,57 +0,0 @@
|
|||||||
commit 73de5d96804160e3e399bd81b135053f70b27e7b
|
|
||||||
Author: Andreas Henriksson <andreas@fatal.se>
|
|
||||||
Date: Mon Jul 4 05:17:42 2011 +0000
|
|
||||||
|
|
||||||
iproute2: Fix building xt module against xtables version 6
|
|
||||||
|
|
||||||
iptables/xtables apparently changed API again.... Now you need to pass
|
|
||||||
and extra parameter (orig_opts) which was not needed before.
|
|
||||||
|
|
||||||
Sprinkle some lovely pre-processor magic to be compatible with both older
|
|
||||||
and new versions. In the beginning of times XTABLES_VERSION_CODE didn't
|
|
||||||
exist. Then it was (0x10000 * major + 0x100 * minor + patch) when it was
|
|
||||||
first introduced (according to git), but now it's at 6...
|
|
||||||
Don't know what official iptables releases has defined it to over time.
|
|
||||||
Lets just hope none of the older versions with is has the define
|
|
||||||
higher then 6 is still around.... so only the "current" versioning
|
|
||||||
scheme is supported.... lets see how long this lasts now.
|
|
||||||
|
|
||||||
For the API change in xtables, see:
|
|
||||||
http://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commitdiff;h=600f38db82548a683775fd89b6e136673e924097
|
|
||||||
|
|
||||||
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
|
|
||||||
|
|
||||||
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 {
|
|
Loading…
x
Reference in New Issue
Block a user