OBS User unknown 2007-07-13 15:49:44 +00:00 committed by Git OBS Bridge
parent 2aad15b641
commit d6d0da58b6
12 changed files with 139 additions and 159 deletions

View File

@ -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;

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c2e4ad5b50659598c4d292930de97647cf97b95e1942435861fa8e53aa9dbda
size 317115

View File

@ -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);

View File

@ -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;

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:27630e6f8181cf790e65f40df0b652f3bd078ad8ba2006d202bd1a422a1282e0
size 334558

View File

@ -1,86 +1,58 @@
Index: doc/ip-cref.tex --- doc/ip-cref.tex
=================================================================== +++ doc/ip-cref.tex 2007/07/12 09:13:47
--- doc/ip-cref.tex.orig @@ -1322,7 +1322,11 @@
+++ doc/ip-cref.tex If it is not given, Linux uses the value selected with \verb|sysctl|
@@ -1323,6 +1323,11 @@
variable \verb|net/ipv4/tcp_reordering|. variable \verb|net/ipv4/tcp_reordering|.
+\item \verb|fragtimeout NUMBER| +\item \verb|fragtimeout NUMBER|
+
+--- \threeonly How many seconds to wait before expiring IP fragments +--- \threeonly How many seconds to wait before expiring IP fragments
+ from the destination of this route. If not specified Linux uses + from the destination of this route. If not specified Linux uses
+ the \verb|sysctl| variable \verb|net/ipv4/ip_frag_timeout|. + the \verb|sysctl| variable \verb|net/ipv4/ip_frag_timeout|.
\item \verb|nexthop NEXTHOP| \item \verb|nexthop NEXTHOP|
Index: ip/iproute.c --- ip/iproute.c
=================================================================== +++ ip/iproute.c 2007/07/12 09:47:17
--- ip/iproute.c.orig @@ -38,6 +38,14 @@
+++ ip/iproute.c
@@ -37,7 +37,19 @@
#ifndef RTAX_RTTVAR
#define RTAX_RTTVAR RTAX_HOPS #define RTAX_RTTVAR RTAX_HOPS
#endif #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 +#ifndef RTAX_FRAG_TIMEOUT
+#define RTAX_FRAG_TIMEOUT (RTAX_REORDERING+1) +#define RTAX_FRAG_TIMEOUT (RTAX_FEATURES+1)
+#endif +#endif
+
+#if RTAX_MAX < RTAX_FRAG_TIMEOUT +#if RTAX_MAX < RTAX_FRAG_TIMEOUT
+#undef RTAX_MAX +#undef RTAX_MAX
+#define RTAX_MAX RTAX_FRAG_TIMEOUT +#define RTAX_MAX RTAX_FRAG_TIMEOUT
+#endif +#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)); 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, "INFO_SPEC := NH OPTIONS FLAGS [ nexthop NH ]...\n");
fprintf(stderr, "NH := [ via ADDRESS ] [ dev STRING ] [ weight NUMBER ] NHFLAGS\n"); fprintf(stderr, "NH := [ via ADDRESS ] [ dev STRING ] [ weight NUMBER ] NHFLAGS\n");
fprintf(stderr, "OPTIONS := FLAGS [ mtu NUMBER ] [ advmss NUMBER ]\n"); fprintf(stderr, "OPTIONS := FLAGS [ mtu NUMBER ] [ advmss NUMBER ]\n");
- fprintf(stderr, " [ rtt NUMBER ] [ rttvar NUMBER ]\n"); - fprintf(stderr, " [ rtt NUMBER ] [ rttvar NUMBER ]\n");
+ fprintf(stderr, " [ rtt NUMBER ] [ rttvar NUMBER ] [ fragtimeout seconds]\n"); + fprintf(stderr, " [ rtt NUMBER ] [ rttvar NUMBER ] [ fragtimeout seconds]\n");
fprintf(stderr, " [ window NUMBER] [ cwnd NUMBER ] [ ssthresh NUMBER ]\n"); fprintf(stderr, " [ window NUMBER] [ cwnd NUMBER ] [ initcwnd NUMBER ]\n");
- fprintf(stderr, " [ realms REALM ]\n"); - fprintf(stderr, " [ ssthresh NUMBER ] [ realms REALM ]\n");
+ fprintf(stderr, " [ reordering NUMBER] [ realms REALM ]\n"); + fprintf(stderr, " [ ssthresh NUMBER ] [ reordering NUMBER] [ realms REALM ]\n");
fprintf(stderr, "TYPE := [ unicast | local | broadcast | multicast | throw |\n"); fprintf(stderr, "TYPE := [ unicast | local | broadcast | multicast | throw |\n");
fprintf(stderr, " unreachable | prohibit | blackhole | nat ]\n"); fprintf(stderr, " unreachable | prohibit | blackhole | nat ]\n");
fprintf(stderr, "TABLE_ID := [ local | main | default | all | NUMBER ]\n"); fprintf(stderr, "TABLE_ID := [ local | main | default | all | NUMBER ]\n");
@@ -497,6 +509,7 @@ @@ -789,6 +798,14 @@
"cwnd",
"advmss",
"reordering",
+ "fragtimeout",
};
static int hz;
if (mxrta[i] == NULL)
@@ -764,16 +777,26 @@
invarg("\"reordering\" value is invalid\n", *argv); invarg("\"reordering\" value is invalid\n", *argv);
rta_addattr32(mxrta, sizeof(mxbuf), RTAX_REORDERING, reord); rta_addattr32(mxrta, sizeof(mxbuf), RTAX_REORDERING, reord);
#endif #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<<RTAX_RTT);
+ mxlock |= (1<<RTAX_REORDERING);
NEXT_ARG();
}
- if (get_unsigned(&rtt, *argv, 0))
- invarg("\"rtt\" value is invalid\n", *argv);
- rta_addattr32(mxrta, sizeof(mxbuf), RTAX_RTT, rtt);
+ if (get_unsigned(&reord, *argv, 0))
+ invarg("\"reordering\" value is invalid\n", *argv);
+ rta_addattr32(mxrta, sizeof(mxbuf), RTAX_REORDERING, reord);
+#endif
+#ifdef RTAX_FRAG_TIMEOUT +#ifdef RTAX_FRAG_TIMEOUT
+ } else if (strcmp(*argv, "fragtimeout") == 0) { + } else if (strcmp(*argv, "fragtimeout") == 0) {
+ unsigned timeout; + unsigned timeout;
@ -89,13 +61,11 @@ Index: ip/iproute.c
+ invarg("\"timeout\" value is invalid\n", *argv); + invarg("\"timeout\" value is invalid\n", *argv);
+ rta_addattr32(mxrta, sizeof(mxbuf), RTAX_FRAG_TIMEOUT, timeout); + rta_addattr32(mxrta, sizeof(mxbuf), RTAX_FRAG_TIMEOUT, timeout);
+#endif +#endif
} else if (matches(*argv, "window") == 0) { } else if (strcmp(*argv, "rtt") == 0) {
unsigned win; unsigned rtt;
NEXT_ARG(); NEXT_ARG();
Index: man/man8/ip.8 --- man/man8/ip.8
=================================================================== +++ man/man8/ip.8 2007/07/12 09:26:54
--- man/man8/ip.8.orig
+++ man/man8/ip.8
@@ -1095,6 +1095,14 @@ @@ -1095,6 +1095,14 @@
.BR "net/ipv4/tcp_reordering" . .BR "net/ipv4/tcp_reordering" .

View File

@ -1,5 +1,5 @@
--- tc/emp_ematch.l --- tc/emp_ematch.l
+++ tc/emp_ematch.l +++ tc/emp_ematch.l 2007/07/12 09:53:11
@@ -63,7 +63,7 @@ @@ -63,7 +63,7 @@
%} %}
@ -12,7 +12,7 @@
@@ -78,17 +78,17 @@ @@ -78,17 +78,17 @@
} }
strbuf_index = 0; strbuf_index = 0;
- BEGIN(str); - BEGIN(str);
+ BEGIN(STR); + BEGIN(STR);
} }
@ -28,7 +28,7 @@
-<str>\\[0-7]{1,3} { /* octal escape sequence */ -<str>\\[0-7]{1,3} { /* octal escape sequence */
+<STR>\\[0-7]{1,3} { /* octal escape sequence */ +<STR>\\[0-7]{1,3} { /* octal escape sequence */
int res; int res;
sscanf(yytext + 1, "%o", &res); sscanf(yytext + 1, "%o", &res);
@@ -100,12 +100,12 @@ @@ -100,12 +100,12 @@
strbuf_append_char((unsigned char) res); strbuf_append_char((unsigned char) res);
@ -43,7 +43,7 @@
-<str>\\x[0-9a-fA-F]{1,2} { -<str>\\x[0-9a-fA-F]{1,2} {
+<STR>\\x[0-9a-fA-F]{1,2} { +<STR>\\x[0-9a-fA-F]{1,2} {
int res; int res;
sscanf(yytext + 2, "%x", &res); sscanf(yytext + 2, "%x", &res);
@@ -118,16 +118,16 @@ @@ -118,16 +118,16 @@
strbuf_append_char((unsigned char) res); strbuf_append_char((unsigned char) res);

View File

@ -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 <kim@woelders.dk>, 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 <kad@blackcatlinux.com>: various flaws in ss
* Alexandr D. Kanevskiy <kad@blackcatlinux.com>: 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" <babydr@baby-dragons.com>
doc: option to produce ps output for non-a4 and not only 2 pages/sheet.
* Jamal's patch for ingres qdisc.
* Bernd Eckenfels <ecki@lina.inka.de>: deleted orphaned bogus #include
in include/utils.h.
* Julian Anastasov <ja@ssi.bg>: 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 <ahu@ds9a.nl> who raised the issue in netdev.
Thanks and apologies to Terry Schmidt <terry@nycwireless.net>,
Ruben Puettmann <ruben.puettmann@freenet-ag.de>,
Mark Ivens <mivens@clara.net>.
* willy tarreau <wtarreau@yahoo.fr>: "make install" target.
* Tunable limit for sch_sfq. Patch to kernel activating this
is about to be submitted. Reminded by Adi Nugroho <Adi@iNterNUX.co.id>
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 20 09:39:53 CEST 2007 - aj@suse.de Fri Apr 20 09:39:53 CEST 2007 - aj@suse.de

View File

@ -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. # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
@ -12,25 +12,24 @@
Name: iproute2 Name: iproute2
BuildRequires: bison db-devel flex ghostscript-fonts-std ghostscript-x11 glib libpng-devel libtiff-devel sgmltool texlive-latex xorg-x11-devel BuildRequires: bison db-devel flex ghostscript-fonts-std ghostscript-x11 glib libpng-devel libtiff-devel sgmltool texlive-latex xorg-x11-devel
%define dateversion 060110 %define dateversion 070710
License: GNU General Public License (GPL) License: GPL v2 or later
Group: Productivity/Networking/Routing Group: Productivity/Networking/Routing
Provides: iproute Provides: iproute
Autoreqprov: on Autoreqprov: on
Version: 2.6.15 Version: 2.6.22
Release: 63 Release: 1
Summary: Advanced Routing Summary: Advanced Routing
URL: http://developer.osdl.org/dev/iproute2/ URL: http://developer.osdl.org/dev/iproute2/
Source0: %name-%version-%dateversion.tar.bz2 Source0: %name-%version-%dateversion.tar.bz2
Source1: libnetlink.3 Source1: libnetlink.3
Patch0: %name-2.6.15-pdfdoc.diff Patch0: %name-2.6.22-pdfdoc.diff
Patch1: %name-2.6.15-flushcheckuid.diff Patch1: %name-2.6.22-flushcheckuid.diff
Patch2: %name-2.6.15-fragtimeout.diff Patch2: %name-2.6.22-fragtimeout.diff
Patch3: %name-2.6.14-nostrip.diff Patch3: %name-2.6.22-nostrip.diff
Patch4: %name-tc-flex-fixes.patch Patch4: %name-tc-flex-fixes.diff
Patch5: %name-resolve-address.diff Patch5: %name-resolve-address.diff
Patch6: %name-2.6.15-060110.dif Patch6: %name-2.6.22-070710.diff
Patch7: %name-2.6.15-ipt-lib-dir.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%package -n libnlink %package -n libnlink
Summary: A Higher Level Interface to the Netlink Service Summary: A Higher Level Interface to the Netlink Service
@ -65,7 +64,6 @@ Authors:
%patch4 %patch4
%patch5 %patch5
%patch6 %patch6
%patch7
find . -name *.orig -print0 | xargs -r0 rm -v find . -name *.orig -print0 | xargs -r0 rm -v
%build %build
@ -114,6 +112,39 @@ rm -rf $RPM_BUILD_ROOT
%_libdir/lib* %_libdir/lib*
%changelog %changelog
* Wed Jul 11 2007 - ms@suse.de
- update to version 2.6.22, fixed (#288551)
* Kim Woelders <kim@woelders.dk>, 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 <kad@blackcatlinux.com>: various flaws in ss
* Alexandr D. Kanevskiy <kad@blackcatlinux.com>: 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" <babydr@baby-dragons.com>
doc: option to produce ps output for non-a4 and not only 2 pages/sheet.
* Jamal's patch for ingres qdisc.
* Bernd Eckenfels <ecki@lina.inka.de>: deleted orphaned bogus #include
in include/utils.h.
* Julian Anastasov <ja@ssi.bg>: 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 <ahu@ds9a.nl> who raised the issue in netdev.
Thanks and apologies to Terry Schmidt <terry@nycwireless.net>,
Ruben Puettmann <ruben.puettmann@freenet-ag.de>,
Mark Ivens <mivens@clara.net>.
* willy tarreau <wtarreau@yahoo.fr>: "make install" target.
* Tunable limit for sch_sfq. Patch to kernel activating this
is about to be submitted. Reminded by Adi Nugroho <Adi@iNterNUX.co.id>
* Fri Apr 20 2007 - aj@suse.de * Fri Apr 20 2007 - aj@suse.de
- Use texlive for building. - Use texlive for building.
* Mon Apr 02 2007 - rguenther@suse.de * Mon Apr 02 2007 - rguenther@suse.de