From: Wilf <G.Wilford@ee.surrey.ac.uk>
Subject: Fixed: routed (netkit-routed-0.10) on alpha/glibc
Date: Mon, 05 Jan 1998 17:52:55 +0000 [thread overview]
Message-ID: <5dcc9f589a3d9eab004f58eed5125eeb.axp-list@archive.invalid> (raw)
routed from the netkit-routed-0.10 package (used in RedHat 5.0) does
not work on Linux alpha w/ glibc. The following patch fixes the
problem. I have not tested the patch in any other environment.
Symptoms (from syslog):
Jan 5 14:32:26 pyr routed[20464]: : ioctl (get interface flags)
Jan 5 14:32:26 pyr routed[20464]: : ioctl (get interface flags)
Jan 5 14:32:26 pyr routed[20464]: ^B: ioctl (get interface flags)
Jan 5 14:32:27 pyr routed[20464]: packet from unknown router, x.x.x.x
Problem caused by incorrectly determining size of interface structure
(might work ok on 32bit platforms by accident)
The Fix:
--- startup.c.orig Mon Jan 5 17:43:32 1998
+++ startup.c Mon Jan 5 17:44:33 1998
@@ -112,7 +112,7 @@
#define size(p) (sizeof (p))
cplim = buf + ifc.ifc_len; /*skip over if's with big ifr_addr's
*/
for (cp = buf; cp < cplim;
- cp += sizeof (ifr->ifr_name) + size(ifr->ifr_addr)) {
+ cp += sizeof (ifr->ifr_name) + sizeof (ifr->ifr_ifru)) {
ifr = (struct ifreq *)cp;
bzero((char *)&ifs, sizeof(ifs));
ifs.int_addr = ifr->ifr_addr;
Cheers,
Wilf.
--
Dr Graeme Wilford CVSSP Computer Systems Support Officer
School of EEIT&M Phone: +44 1483 259125
University of Surrey Fax: +44 1483 259554
Guildford email: G.Wilford@ee.surrey.ac.uk
Surrey GU2 5XH, UK http:/www.ee.surrey.ac.uk/Research/VSSP/
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
reply other threads:[~1998-01-05 17:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox