- fix crash when resolving ip address
This commit is contained in:
parent
37eeb3e87d
commit
753fb3a75a
@ -4,7 +4,7 @@
|
||||
Summary: Advanced IP routing and network device configuration tools.
|
||||
Name: iproute
|
||||
Version: 2.6.16
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Group: Applications/System
|
||||
Source: http://developer.osdl.org/dev/iproute2/download/iproute2-%{version}-%{date_version}.tar.gz
|
||||
URL: http://linux-net.osdl.org/index.php/Iproute2
|
||||
@ -15,6 +15,7 @@ Patch7: iproute2-051007-add_tunnel.patch
|
||||
Patch8: iproute2-2.6.16-libdir.patch
|
||||
Patch9: iproute2-2.6.16-initcwnd-correct-order.patch
|
||||
Patch10: iproute2-2.6.16-flags.patch
|
||||
Patch11: iproute2-2.6.16-ip_resolve_crash.patch
|
||||
|
||||
License: GNU GPL
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
@ -36,6 +37,7 @@ capabilities of the Linux 2.4.x and 2.6.x kernel.
|
||||
%patch8 -p1 -b .libdir
|
||||
%patch9 -p1 -b .initcwnd
|
||||
%patch10 -p1 -b .flags
|
||||
%patch11 -p1 -b .ip_resolve
|
||||
|
||||
%build
|
||||
export LIBDIR=%{_libdir}
|
||||
@ -96,6 +98,9 @@ EOF
|
||||
%config(noreplace) /etc/sysconfig/cbq/*
|
||||
|
||||
%changelog
|
||||
* Tue Sep 19 2006 Radek Vokal <rvokal@redhat.com> - 2.6.16-5
|
||||
- fix crash when resolving ip address
|
||||
|
||||
* Mon Aug 21 2006 Radek Vokál <rvokal@redhat.com> - 2.6.16-4
|
||||
- add LOWER_UP and DORMANT flags (#202199)
|
||||
- use dist tag
|
||||
|
11
iproute2-2.6.16-ip_resolve_crash.patch
Normal file
11
iproute2-2.6.16-ip_resolve_crash.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- iproute2-2.6.16-060323/lib/utils.c.crash 2005-09-01 21:21:50.000000000 +0200
|
||||
+++ iproute2-2.6.16-060323/lib/utils.c 2006-09-19 13:47:26.000000000 +0200
|
||||
@@ -439,7 +439,7 @@
|
||||
len = 4;
|
||||
}
|
||||
|
||||
- hash = addr[len-1] ^ addr[len-2] ^ addr[len-3] ^ addr[len-4];
|
||||
+ hash = (addr[len-1] ^ addr[len-2] ^ addr[len-3] ^ addr[len-4]) & 0xff;
|
||||
|
||||
for (n = nht[hash]; n; n = n->next) {
|
||||
if (n->addr.family == af &&
|
Loading…
Reference in New Issue
Block a user