From owner-freebsd-hackers Sat Nov 23 22:41:10 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA01282 for hackers-outgoing; Sat, 23 Nov 1996 22:41:10 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id WAA01277 for ; Sat, 23 Nov 1996 22:41:05 -0800 (PST) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 0.56 #1) id E0vRYFR-0004SJ-00; Sat, 23 Nov 1996 23:41:01 -0700 Subject: Re: rarpd To: Bill Fenner , hackers@freebsd.org In-reply-to: Your message of "Sat, 23 Nov 1996 23:27:43 MST." References: <96Nov23.194047pst.177567@crevenia.parc.xerox.com> Date: Sat, 23 Nov 1996 23:41:00 -0700 From: Warner Losh Message-Id: Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk OK. The host.conf problem was the problem. I'm now getting RPC timeouts on the thing I'm trying to boot because I'm not running portmapper or bootparamd. Go figure :-). At least RARP is out of the way now. Still no idea on the overflows I was seeing, but I'm not seeing them now, so it does look like it was due to the bfp buffer chopping things badly maybe? Something to think about. Bill, since you seem to be keeper of rarpd, you might want to add a note in the man page about this... Also, the following diffs look like they may be useful. They add sysloging for cases that don't already have it. Thanks for your helpful hint! Warner Index: rarpd.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/rarpd/rarpd.c,v retrieving revision 1.10 diff -u -r1.10 rarpd.c --- rarpd.c 1996/11/19 23:57:06 1.10 +++ rarpd.c 1996/11/24 01:02:47 @@ -709,11 +709,16 @@ ep = (struct ether_header *)pkt; /* should this be arp_tha? */ - if (ether_ntohost(ename, &ep->ether_shost) != 0) + if (ether_ntohost(ename, &ep->ether_shost) != 0) { + syslog(LOG_ERR, "ether_ntohost failed for %s",ename); return; + } - if((hp = gethostbyname(ename)) == NULL) + if ((hp = gethostbyname(ename)) == NULL) { + syslog(LOG_ERR, "gethostbyname failed for %s", ename ); return; + } + /* * Choose correct address from list. */