Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* fix for netkit-timed.0.10 on Linux Alpha
@ 1998-10-11 23:24 Christian Groessler
  1998-10-12  2:44 ` Weird Boot Problem after Ramdisk is inserted Steve G
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Groessler @ 1998-10-11 23:24 UTC (permalink / raw)
  To: netbug; +Cc: cpg, axp-list


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;
---------------------



^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <Pine.SUN.3.96.981012102122.29060B-100000@ocelot>]

end of thread, other threads:[~1998-10-12 23:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-11 23:24 fix for netkit-timed.0.10 on Linux Alpha Christian Groessler
1998-10-12  2:44 ` Weird Boot Problem after Ramdisk is inserted Steve G
1998-10-12 23:19   ` Craig Oettle
     [not found] <Pine.SUN.3.96.981012102122.29060B-100000@ocelot>
1998-10-12 20:36 ` Steve G

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