Subject: Re: rbootd for FreeBSD
To: None <thorpej@nas.nasa.gov>
From: Mike Hibler <mike@fast.cs.utah.edu>
List: port-hp300
Date: 01/30/1996 21:18:58
> To: knarf@camelot.de (Frank Bartels)
> Subject: Re: rbootd for FreeBSD 
> From: Jason Thorpe <thorpej@nas.nasa.gov>
> Date: Tue, 30 Jan 1996 17:50:39 -0800
> 
> On Tue, 30 Jan 1996 22:01:03 +0100 
>  knarf@camelot.de (Frank Bartels) wrote:
> 
>  > I still had no success in netbooting my hp of my FreeBSD box.
>  > Someone said a while ago on this list, the FreeBSD rbootd won't
>  > work because of the little/big endian mismatch. I compiled the
>  > NetBSD rbootd under FreeBSD, but it did not solve the problem.
>  > 
>  > Right now the rbootd answers "something", but the hp does not send
>  > an rarp request...
> 
> There is something different about the FreeBSD ethernet drivers, 
> apparently (or BPF, or something).  Mike Hibler and I were helping a 
> fellow from Texas recover his HP-BSD system when we noticed it.  Scott 
> Reynolds sent me a patch that DTRT #if defined(__FreeBSD__).  However, I 
> have lost the patch (and I forgot to check it in to the tree).
> 
> Scott, Mike, anyone: if you have the patch, I'd sure appreciate it if 
> you'd send me a copy :-)
> 

The problem had to do with BPF.  Something (the length field?) in the
ethernet header fed to BPF was being byte-swapped (not byte-swapped?)
when it shouldn't (should?) have been.  You just need to change a htons
to a ntohs (or visa-versa).

Sorry for being so vague...