Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Fixed: routed (netkit-routed-0.10) on alpha/glibc
@ 1998-01-05 17:52 Wilf
  0 siblings, 0 replies; only message in thread
From: Wilf @ 1998-01-05 17:52 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-01-05 17:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-05 17:52 Fixed: routed (netkit-routed-0.10) on alpha/glibc Wilf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox