Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Nov 1996 23:41:00 -0700
From:      Warner Losh <imp@village.org>
To:        Bill Fenner <fenner@parc.xerox.com>, hackers@freebsd.org
Subject:   Re: rarpd 
Message-ID:  <E0vRYFR-0004SJ-00@rover.village.org>
In-Reply-To: Your message of "Sat, 23 Nov 1996 23:27:43 MST." <E0vRY2Z-0004PJ-00@rover.village.org> 
References:  <E0vRY2Z-0004PJ-00@rover.village.org>  <96Nov23.194047pst.177567@crevenia.parc.xerox.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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.
 	 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0vRYFR-0004SJ-00>