Subject: Re: rbootd for FreeBSD
To: Jason Thorpe , Frank Bartels <knarf@camelot.de>
From: Scott Reynolds <scottr@plexus.com>
List: port-hp300
Date: 02/01/1996 16:25:39
On Thu, 1 Feb 1996, Scott Reynolds wrote:

> The fix is appended, and
> apparently a version of this has now been checked in to the -current
> tree... 

Well, now that my mistake is enshrined in the mailing list archives, you 
might want to try this one instead.  (The patch I had found was against 
an interim version of rbootd I had been working on.  *sigh*)  Notice that 
this is simpler code. :-)

--scott

*** rmpproto.c	1995/11/14 08:41:46	1.6
--- rmpproto.c	1996/02/01 21:27:46	1.7
***************
*** 574,580 ****
--- 574,585 ----
  	 */
  	bcopy((char *)&rconn->rmp.hp_hdr.saddr[0],
  	      (char *)&rconn->rmp.hp_hdr.daddr[0], RMP_ADDRLEN);
+ #ifdef __FreeBSD__
+ 	/* BPF (incorrectly) wants this in host order. */
+ 	rconn->rmp.hp_hdr.len = rconn->rmplen - sizeof(struct hp_hdr);
+ #else
  	rconn->rmp.hp_hdr.len = htons(rconn->rmplen - sizeof(struct hp_hdr));
+ #endif
  
  	/*
  	 *  Reverse 802.2/HP Extended Source & Destination Access Pts.