From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 8801 invoked from network); 11 Oct 1998 23:28:11 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 11 Oct 1998 23:28:11 -0000 Received: from punt.aladdin.de (punt.aladdin.de [194.123.19.6]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id TAA20431 for ; Sun, 11 Oct 1998 19:22:28 -0400 Received: by punt.aladdin.de; id BAA17108; Mon, 12 Oct 1998 01:24:52 +0200 Date: Mon, 12 Oct 1998 01:24:52 +0200 Message-Id: <199810112324.BAA17108@punt.aladdin.de> Received: from cocktail.aladdin.de(10.20.1.31) by punt.aladdin.de via smap (3.2) id xma017106; Mon, 12 Oct 98 01:24:37 +0200 From: Christian Groessler To: netbug@ftp.uk.linux.org CC: cpg@aladdin.de, axp-list@redhat.com Subject: fix for netkit-timed.0.10 on Linux Alpha 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; ---------------------