Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Christian Groessler <cpg@aladdin.de>
To: netbug@ftp.uk.linux.org
Cc: cpg@aladdin.de, axp-list@redhat.com
Subject: fix for netkit-timed.0.10 on Linux Alpha
Date: Mon, 12 Oct 1998 01:24:52 +0200	[thread overview]
Message-ID: <199810112324.BAA17108@punt.aladdin.de> (raw)


Hi,

the following patch was required for timed on Alpha to work.
I operate it as client and it seems to work right now. Previously it
only found the loopback interface (127.0.0.1) and ignored the network
cards.

regards,
chris

---------------------
diff -ruN netkit-timed-0.10.org/timed/timed/timed.c netkit-timed-0.10/timed/timed/timed.c
--- netkit-timed-0.10.org/timed/timed/timed.c	Thu Aug 29 21:53:15 1996
+++ netkit-timed-0.10/timed/timed/timed.c	Mon Oct 12 01:08:20 1998
@@ -405,8 +405,7 @@
 #define size(p)	max((p).sa_len, sizeof(p))
 #endif
 	cplim = buf + ifc.ifc_len; /*skip over if's with big ifr_addr's */
-	for (cp = buf; cp < cplim;
-			cp += sizeof (ifr->ifr_name) + sizeof(ifr->ifr_addr)) {
+	for (cp = buf; cp < cplim; cp += sizeof(struct ifreq)) {
 		ifr = (struct ifreq *)cp;
 		if (ifr->ifr_addr.sa_family != AF_INET)
 			continue;
---------------------



             reply	other threads:[~1998-10-11 23:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-11 23:24 Christian Groessler [this message]
1998-10-12  2:44 ` Weird Boot Problem after Ramdisk is inserted Steve G
1998-10-12 23:19   ` Craig Oettle
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