From d6d0da58b69a19bb5fe31f3a1322e8c2529b41f353a79cff4abd6294d80efd84 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Fri, 13 Jul 2007 15:49:44 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/iproute2?expand=0&rev=6 --- iproute2-2.6.15-060110.dif | 35 -------- iproute2-2.6.15-060110.tar.bz2 | 3 - iproute2-2.6.15-ipt-lib-dir.diff | 46 ---------- iproute2-2.6.22-070710.diff | 24 ++++++ iproute2-2.6.22-070710.tar.bz2 | 3 + ...diff => iproute2-2.6.22-flushcheckuid.diff | 0 ...t.diff => iproute2-2.6.22-fragtimeout.diff | 86 ++++++------------- ...strip.diff => iproute2-2.6.22-nostrip.diff | 0 ...pdfdoc.diff => iproute2-2.6.22-pdfdoc.diff | 0 ...fixes.patch => iproute2-tc-flex-fixes.diff | 8 +- iproute2.changes | 36 ++++++++ iproute2.spec | 57 +++++++++--- 12 files changed, 139 insertions(+), 159 deletions(-) delete mode 100644 iproute2-2.6.15-060110.dif delete mode 100644 iproute2-2.6.15-060110.tar.bz2 delete mode 100644 iproute2-2.6.15-ipt-lib-dir.diff create mode 100644 iproute2-2.6.22-070710.diff create mode 100644 iproute2-2.6.22-070710.tar.bz2 rename iproute2-2.6.15-flushcheckuid.diff => iproute2-2.6.22-flushcheckuid.diff (100%) rename iproute2-2.6.15-fragtimeout.diff => iproute2-2.6.22-fragtimeout.diff (55%) rename iproute2-2.6.14-nostrip.diff => iproute2-2.6.22-nostrip.diff (100%) rename iproute2-2.6.15-pdfdoc.diff => iproute2-2.6.22-pdfdoc.diff (100%) rename iproute2-tc-flex-fixes.patch => iproute2-tc-flex-fixes.diff (97%) diff --git a/iproute2-2.6.15-060110.dif b/iproute2-2.6.15-060110.dif deleted file mode 100644 index 75c5e7b..0000000 --- a/iproute2-2.6.15-060110.dif +++ /dev/null @@ -1,35 +0,0 @@ ---- include/iptables.h -+++ include/iptables.h 2007/02/08 12:49:21 -@@ -18,7 +18,7 @@ - - struct ipt_get_revision - { -- char name[IPT_FUNCTION_MAXNAMELEN-1]; -+ char name[IPT_FUNCTION_MAXNAMELEN]; - - u_int8_t revision; - }; ---- lib/utils.c -+++ lib/utils.c 2007/02/08 12:52:41 -@@ -33,6 +33,10 @@ - - #include "utils.h" - -+#ifndef HZ -+#define HZ sysconf(_SC_CLK_TCK) -+#endif -+ - int get_integer(int *val, const char *arg, int base) - { - long res; -@@ -330,8 +334,8 @@ - - int inet_addr_match(const inet_prefix *a, const inet_prefix *b, int bits) - { -- __u32 *a1 = a->data; -- __u32 *a2 = b->data; -+ __u32 *a1 = (__u32*)a->data; -+ __u32 *a2 = (__u32*)b->data; - int words = bits >> 0x05; - - bits &= 0x1f; diff --git a/iproute2-2.6.15-060110.tar.bz2 b/iproute2-2.6.15-060110.tar.bz2 deleted file mode 100644 index 35dd638..0000000 --- a/iproute2-2.6.15-060110.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c2e4ad5b50659598c4d292930de97647cf97b95e1942435861fa8e53aa9dbda -size 317115 diff --git a/iproute2-2.6.15-ipt-lib-dir.diff b/iproute2-2.6.15-ipt-lib-dir.diff deleted file mode 100644 index f06ad0f..0000000 --- a/iproute2-2.6.15-ipt-lib-dir.diff +++ /dev/null @@ -1,46 +0,0 @@ ---- tc/m_ipt.c.orig 2007-01-29 10:14:01.000000000 +0100 -+++ tc/m_ipt.c 2007-01-29 10:50:37.000000000 +0100 -@@ -9,7 +9,7 @@ - * - * Authors: J Hadi Salim (hadi@cyberus.ca) - * -- * TODO: bad bad hardcoding IPT_LIB_DIR and PROC_SYS_MODPROBE -+ * TODO: bad bad hardcoding PROC_SYS_MODPROBE - * - */ - -@@ -47,10 +47,6 @@ - #define FALSE 0 - #endif - --#ifndef IPT_LIB_DIR --#define IPT_LIB_DIR "/usr/local/lib/iptables" --#endif -- - #ifndef PROC_SYS_MODPROBE - #define PROC_SYS_MODPROBE "/proc/sys/kernel/modprobe" - #endif -@@ -233,8 +229,13 @@ - char *error; - char *new_name, *lname; - struct iptables_target *m; -+ char ipt_lib_dir[30] = "/usr/lib/iptables"; -+ -+ if (access (ipt_lib_dir,R_OK)) { -+ strcpy (ipt_lib_dir,"/usr/lib64/iptables"); -+ } - -- char path[sizeof (IPT_LIB_DIR) + sizeof ("/libipt_.so") + strlen(name)]; -+ char path[sizeof (ipt_lib_dir) + sizeof ("/libipt_.so") + strlen(name)]; - - new_name = malloc(strlen(name) + 1); - lname = malloc(strlen(name) + 1); -@@ -265,7 +266,7 @@ - } - } - -- sprintf(path, IPT_LIB_DIR "/libipt_%s.so", new_name); -+ sprintf(path, "%s/libipt_%s.so", ipt_lib_dir,new_name); - handle = dlopen(path, RTLD_LAZY); - if (!handle) { - sprintf(path, IPT_LIB_DIR "/libipt_%s.so", lname); diff --git a/iproute2-2.6.22-070710.diff b/iproute2-2.6.22-070710.diff new file mode 100644 index 0000000..fee1773 --- /dev/null +++ b/iproute2-2.6.22-070710.diff @@ -0,0 +1,24 @@ +--- lib/utils.c ++++ lib/utils.c 2007/07/12 09:05:56 +@@ -33,6 +33,10 @@ + + #include "utils.h" + ++#ifndef HZ ++#define HZ sysconf(_SC_CLK_TCK) ++#endif ++ + int get_integer(int *val, const char *arg, int base) + { + long res; +@@ -330,8 +334,8 @@ + + int inet_addr_match(const inet_prefix *a, const inet_prefix *b, int bits) + { +- const __u32 *a1 = a->data; +- const __u32 *a2 = b->data; ++ const __u32 *a1 = (__u32*)a->data; ++ const __u32 *a2 = (__u32*)b->data; + int words = bits >> 0x05; + + bits &= 0x1f; diff --git a/iproute2-2.6.22-070710.tar.bz2 b/iproute2-2.6.22-070710.tar.bz2 new file mode 100644 index 0000000..c7fce25 --- /dev/null +++ b/iproute2-2.6.22-070710.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27630e6f8181cf790e65f40df0b652f3bd078ad8ba2006d202bd1a422a1282e0 +size 334558 diff --git a/iproute2-2.6.15-flushcheckuid.diff b/iproute2-2.6.22-flushcheckuid.diff similarity index 100% rename from iproute2-2.6.15-flushcheckuid.diff rename to iproute2-2.6.22-flushcheckuid.diff diff --git a/iproute2-2.6.15-fragtimeout.diff b/iproute2-2.6.22-fragtimeout.diff similarity index 55% rename from iproute2-2.6.15-fragtimeout.diff rename to iproute2-2.6.22-fragtimeout.diff index 9d61766..bbf9abc 100644 --- a/iproute2-2.6.15-fragtimeout.diff +++ b/iproute2-2.6.22-fragtimeout.diff @@ -1,86 +1,58 @@ -Index: doc/ip-cref.tex -=================================================================== ---- doc/ip-cref.tex.orig -+++ doc/ip-cref.tex -@@ -1323,6 +1323,11 @@ +--- doc/ip-cref.tex ++++ doc/ip-cref.tex 2007/07/12 09:13:47 +@@ -1322,7 +1322,11 @@ + If it is not given, Linux uses the value selected with \verb|sysctl| variable \verb|net/ipv4/tcp_reordering|. - +\item \verb|fragtimeout NUMBER| -+ + +--- \threeonly How many seconds to wait before expiring IP fragments + from the destination of this route. If not specified Linux uses + the \verb|sysctl| variable \verb|net/ipv4/ip_frag_timeout|. \item \verb|nexthop NEXTHOP| -Index: ip/iproute.c -=================================================================== ---- ip/iproute.c.orig -+++ ip/iproute.c -@@ -37,7 +37,19 @@ - #ifndef RTAX_RTTVAR +--- ip/iproute.c ++++ ip/iproute.c 2007/07/12 09:47:17 +@@ -38,6 +38,14 @@ #define RTAX_RTTVAR RTAX_HOPS #endif -- -+#ifndef RTAX_ADVMSS -+#define RTAX_ADVMSS (RTAX_CWND+1) -+#endif -+#ifndef RTAX_REORDERING -+#define RTAX_REORDERING (RTAX_ADVMSS+1) -+#endif + +#ifndef RTAX_FRAG_TIMEOUT -+#define RTAX_FRAG_TIMEOUT (RTAX_REORDERING+1) ++#define RTAX_FRAG_TIMEOUT (RTAX_FEATURES+1) +#endif ++ +#if RTAX_MAX < RTAX_FRAG_TIMEOUT +#undef RTAX_MAX +#define RTAX_MAX RTAX_FRAG_TIMEOUT +#endif + static const char *mx_names[RTAX_MAX+1] = { + [RTAX_MTU] = "mtu", +@@ -51,6 +59,7 @@ + [RTAX_HOPLIMIT] = "hoplimit", + [RTAX_INITCWND] = "initcwnd", + [RTAX_FEATURES] = "features", ++ [RTAX_FRAG_TIMEOUT]="fragtimeout" + }; static void usage(void) __attribute__((noreturn)); -@@ -58,9 +70,9 @@ +@@ -71,9 +80,9 @@ fprintf(stderr, "INFO_SPEC := NH OPTIONS FLAGS [ nexthop NH ]...\n"); fprintf(stderr, "NH := [ via ADDRESS ] [ dev STRING ] [ weight NUMBER ] NHFLAGS\n"); fprintf(stderr, "OPTIONS := FLAGS [ mtu NUMBER ] [ advmss NUMBER ]\n"); - fprintf(stderr, " [ rtt NUMBER ] [ rttvar NUMBER ]\n"); + fprintf(stderr, " [ rtt NUMBER ] [ rttvar NUMBER ] [ fragtimeout seconds]\n"); - fprintf(stderr, " [ window NUMBER] [ cwnd NUMBER ] [ ssthresh NUMBER ]\n"); -- fprintf(stderr, " [ realms REALM ]\n"); -+ fprintf(stderr, " [ reordering NUMBER] [ realms REALM ]\n"); + fprintf(stderr, " [ window NUMBER] [ cwnd NUMBER ] [ initcwnd NUMBER ]\n"); +- fprintf(stderr, " [ ssthresh NUMBER ] [ realms REALM ]\n"); ++ fprintf(stderr, " [ ssthresh NUMBER ] [ reordering NUMBER] [ realms REALM ]\n"); fprintf(stderr, "TYPE := [ unicast | local | broadcast | multicast | throw |\n"); fprintf(stderr, " unreachable | prohibit | blackhole | nat ]\n"); fprintf(stderr, "TABLE_ID := [ local | main | default | all | NUMBER ]\n"); -@@ -497,6 +509,7 @@ - "cwnd", - "advmss", - "reordering", -+ "fragtimeout", - }; - static int hz; - if (mxrta[i] == NULL) -@@ -764,16 +777,26 @@ +@@ -789,6 +798,14 @@ invarg("\"reordering\" value is invalid\n", *argv); rta_addattr32(mxrta, sizeof(mxbuf), RTAX_REORDERING, reord); #endif -- } else if (strcmp(*argv, "rtt") == 0) { -- unsigned rtt; -+#ifdef RTAX_REORDERING -+ } else if (matches(*argv, "reordering") == 0) { -+ unsigned reord; - NEXT_ARG(); - if (strcmp(*argv, "lock") == 0) { -- mxlock |= (1<\\[0-7]{1,3} { /* octal escape sequence */ +\\[0-7]{1,3} { /* octal escape sequence */ int res; - + sscanf(yytext + 1, "%o", &res); @@ -100,12 +100,12 @@ strbuf_append_char((unsigned char) res); @@ -43,7 +43,7 @@ -\\x[0-9a-fA-F]{1,2} { +\\x[0-9a-fA-F]{1,2} { int res; - + sscanf(yytext + 2, "%x", &res); @@ -118,16 +118,16 @@ strbuf_append_char((unsigned char) res); diff --git a/iproute2.changes b/iproute2.changes index b4944bb..780bd43 100644 --- a/iproute2.changes +++ b/iproute2.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Wed Jul 11 16:26:49 CEST 2007 - ms@suse.de + +- update to version 2.6.22, fixed (#288551) + * Kim Woelders , various useful fixups: compilation + with old kernels, cross-compiling, "all" == "any" in prefix spec. + * Collected from my disk, cleaned and packed to directory iproute2/misc/ + several utilities: ss, nstat, ifstat, rtacct, arpd and module tcp_diag. + Writing some docs. me. + * prepared patchlet for pidentd to use tcp_diag. + * David Miller: 64bit (and even worse 64bit kernel/32 bit user :-) fixes + to above. tcp_diag is merged to main tree. + * Alexandr D. Kanevskiy : various flaws in ss + * Alexandr D. Kanevskiy : oops, more aggressive caching + of names opened old bugs: ip started to print garbage in some places. + * Robert Olsson, rt_cache_stat. Renamed to rtstat. + * An old bug in "ip maddr ls": reduntant empty lines in output. + Seeing this crap for ages but lucky match of desire/ability to repair + and a huff about this happened only today. :-) + * "Mr. James W. Laferriere" + doc: option to produce ps output for non-a4 and not only 2 pages/sheet. + * Jamal's patch for ingres qdisc. + * Bernd Eckenfels : deleted orphaned bogus #include + in include/utils.h. + * Julian Anastasov : uninitialized fields in nexthop + producing funny "dead" nexthops in multipath routes. + Stupid me, look at the first line in [010803]... Was it difficult to guess + this that time? People blame for several months. :-) + Special thanks to bert hubert who raised the issue in netdev. + Thanks and apologies to Terry Schmidt , + Ruben Puettmann , + Mark Ivens . + * willy tarreau : "make install" target. + * Tunable limit for sch_sfq. Patch to kernel activating this + is about to be submitted. Reminded by Adi Nugroho + ------------------------------------------------------------------- Fri Apr 20 09:39:53 CEST 2007 - aj@suse.de diff --git a/iproute2.spec b/iproute2.spec index 887c434..e565330 100644 --- a/iproute2.spec +++ b/iproute2.spec @@ -1,5 +1,5 @@ # -# spec file for package iproute2 (Version 2.6.15) +# spec file for package iproute2 (Version 2.6.22) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -12,25 +12,24 @@ Name: iproute2 BuildRequires: bison db-devel flex ghostscript-fonts-std ghostscript-x11 glib libpng-devel libtiff-devel sgmltool texlive-latex xorg-x11-devel -%define dateversion 060110 -License: GNU General Public License (GPL) +%define dateversion 070710 +License: GPL v2 or later Group: Productivity/Networking/Routing Provides: iproute Autoreqprov: on -Version: 2.6.15 -Release: 63 +Version: 2.6.22 +Release: 1 Summary: Advanced Routing URL: http://developer.osdl.org/dev/iproute2/ Source0: %name-%version-%dateversion.tar.bz2 Source1: libnetlink.3 -Patch0: %name-2.6.15-pdfdoc.diff -Patch1: %name-2.6.15-flushcheckuid.diff -Patch2: %name-2.6.15-fragtimeout.diff -Patch3: %name-2.6.14-nostrip.diff -Patch4: %name-tc-flex-fixes.patch +Patch0: %name-2.6.22-pdfdoc.diff +Patch1: %name-2.6.22-flushcheckuid.diff +Patch2: %name-2.6.22-fragtimeout.diff +Patch3: %name-2.6.22-nostrip.diff +Patch4: %name-tc-flex-fixes.diff Patch5: %name-resolve-address.diff -Patch6: %name-2.6.15-060110.dif -Patch7: %name-2.6.15-ipt-lib-dir.diff +Patch6: %name-2.6.22-070710.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %package -n libnlink Summary: A Higher Level Interface to the Netlink Service @@ -65,7 +64,6 @@ Authors: %patch4 %patch5 %patch6 -%patch7 find . -name *.orig -print0 | xargs -r0 rm -v %build @@ -114,6 +112,39 @@ rm -rf $RPM_BUILD_ROOT %_libdir/lib* %changelog +* Wed Jul 11 2007 - ms@suse.de +- update to version 2.6.22, fixed (#288551) + * Kim Woelders , various useful fixups: compilation + with old kernels, cross-compiling, "all" == "any" in prefix spec. + * Collected from my disk, cleaned and packed to directory iproute2/misc/ + several utilities: ss, nstat, ifstat, rtacct, arpd and module tcp_diag. + Writing some docs. me. + * prepared patchlet for pidentd to use tcp_diag. + * David Miller: 64bit (and even worse 64bit kernel/32 bit user :-) fixes + to above. tcp_diag is merged to main tree. + * Alexandr D. Kanevskiy : various flaws in ss + * Alexandr D. Kanevskiy : oops, more aggressive caching + of names opened old bugs: ip started to print garbage in some places. + * Robert Olsson, rt_cache_stat. Renamed to rtstat. + * An old bug in "ip maddr ls": reduntant empty lines in output. + Seeing this crap for ages but lucky match of desire/ability to repair + and a huff about this happened only today. :-) + * "Mr. James W. Laferriere" + doc: option to produce ps output for non-a4 and not only 2 pages/sheet. + * Jamal's patch for ingres qdisc. + * Bernd Eckenfels : deleted orphaned bogus #include + in include/utils.h. + * Julian Anastasov : uninitialized fields in nexthop + producing funny "dead" nexthops in multipath routes. + Stupid me, look at the first line in [010803]... Was it difficult to guess + this that time? People blame for several months. :-) + Special thanks to bert hubert who raised the issue in netdev. + Thanks and apologies to Terry Schmidt , + Ruben Puettmann , + Mark Ivens . + * willy tarreau : "make install" target. + * Tunable limit for sch_sfq. Patch to kernel activating this + is about to be submitted. Reminded by Adi Nugroho * Fri Apr 20 2007 - aj@suse.de - Use texlive for building. * Mon Apr 02 2007 - rguenther@suse.de