Subject: Re: stability problems with NetBSD/sparc 1.3.2
To: None <port-sparc@netbsd.org, netbsd-users@netbsd.org>
From: Greg A. Woods <woods@most.weird.com>
List: port-sparc
Date: 10/23/1998 14:34:53
[ On Sat, October 24, 1998 at 02:03:00 (+0900), Izumi Tsutsui wrote: ]
> Subject: Re: stability problems with NetBSD/sparc 1.3.2
>
> gillhaa@ghost.whirlpool.com wrote:
> 
> > So, my guess is that rarpd gets confused or the mkarp() doesn't do
> > the right thing.
> 
> This problem was fixed by bin/4835. mkarp.c in current should work.
> Some SPARCstation's PROM does not reply to `arp who-has' request,
> even Sun3 PROM does.

I was going to say that Andrew Gillham's description of the problem was
even more accurate and lucid than mine, but I note that the rarpd I am
running already includes the fix from PR#4835 (plus minor cleanups):

	14:25 [355] $ diff /usr/src-1.3.2/usr.sbin/rarpd/mkarp.c /var/sup/sup.NetBSD.ORG/src/usr.sbin/rarpd/
	1c1
	< /*    $NetBSD: mkarp.c,v 1.1 1997/11/24 18:43:14 is Exp $ */
	---
	> /*    $NetBSD: mkarp.c,v 1.2 1998/01/17 11:38:36 christos Exp $ */
	49c49
	< __RCSID("$NetBSD: mkarp.c,v 1.1 1997/11/24 18:43:14 is Exp $");
	---
	> __RCSID("$NetBSD: mkarp.c,v 1.2 1998/01/17 11:38:36 christos Exp $");
	119,120c119,120
	<       if (endp > (p + 6))
	<               endp = p + 6;
	---
	>       if (endp > (p + ETHER_ADDR_LEN))
	>               endp = p + ETHER_ADDR_LEN;
	124a125
	>       sdl_m.sdl_alen = ETHER_ADDR_LEN;
	
	14:26 [356] $ ident /usr/sbin/rarpd
	/usr/sbin/rarpd:
	     $NetBSD: crt0.c,v 1.23 1997/10/20 16:08:28 christos Exp $
	     $NetBSD: rarpd.c,v 1.26 1998/07/13 06:31:31 mrg Exp $
	     $NetBSD: mkarp.c,v 1.2 1998/01/17 11:38:36 christos Exp $

and yet I still have problems.  Either Andrew's problem isn't exactly
the same as mine, or PR#4835 doesn't actually fix it.

There are much more extensive changes to rarpd.c in -current though, so
on my next crash I'll try it:

	14:26 [357] $ ident /var/sup/sup.NetBSD.ORG/src/usr.sbin/rarpd/rarpd.c
	/var/sup/sup.NetBSD.ORG/src/usr.sbin/rarpd/rarpd.c:
	     $NetBSD: rarpd.c,v 1.30 1998/10/06 15:50:30 fvdl Exp $
	     $NetBSD: rarpd.c,v 1.30 1998/10/06 15:50:30 fvdl Exp $

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>