rpms/iproute/devel iproute2-2.6.16-ip_resolve_crash.patch, NONE, 1.1 iproute.spec, 1.52, 1.53

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Sep 19 12:01:56 UTC 2006


Author: rvokal

Update of /cvs/dist/rpms/iproute/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv18094

Modified Files:
	iproute.spec 
Added Files:
	iproute2-2.6.16-ip_resolve_crash.patch 
Log Message:
 - fix crash when resolving ip address

iproute2-2.6.16-ip_resolve_crash.patch:
 utils.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE iproute2-2.6.16-ip_resolve_crash.patch ---
--- 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 &&


Index: iproute.spec
===================================================================
RCS file: /cvs/dist/rpms/iproute/devel/iproute.spec,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- iproute.spec	21 Aug 2006 11:52:02 -0000	1.52
+++ iproute.spec	19 Sep 2006 12:01:54 -0000	1.53
@@ -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 @@
 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 @@
 %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 @@
 %config(noreplace) /etc/sysconfig/cbq/*
 
 %changelog
+* Tue Sep 19 2006 Radek Vokal <rvokal at redhat.com> - 2.6.16-5
+- fix crash when resolving ip address
+
 * Mon Aug 21 2006 Radek Vokál <rvokal at redhat.com> - 2.6.16-4
 - add LOWER_UP and DORMANT flags (#202199)
 - use dist tag




More information about the fedora-cvs-commits mailing list