Subject: Re: SYS_INIT using rbootd from FreeBSD?
To: Stan Brown <stanb@awod.com>
From: Kyle Mestery <mestery@winternet.com>
List: port-hp300
Date: 04/13/1998 06:50:11
On Sat, 11 Apr 1998, Stan Brown wrote:

> << 22:44:41.497330   Addr: 08:00:09:04:b2:01   Intf: ed0
> 		802.2 LLC: DSAP:f8 SSAP:f8 CTRL:3
> 		HP Ext:    DXSAP:806 SXSAP:906
> 		Boot Request: (Send Server ID)
> 			   RetCode:0 SeqNo:0 SessID:ffff Vers:512
> 			   Machine Type: HPS300              
> 			   File Name (0): <>
> 
> >>> 22:44:41.501127   Addr: 08:00:09:04:b2:01   Intf: ed0
> 		802.2 LLC: DSAP:f8 SSAP:f8 CTRL:3
> 		HP Ext:    DXSAP:609 SXSAP:608
> 		Boot Reply:
> 			   RetCode:0 SeqNo:0 SessID:0 Vers:2
> 			   File Name (5): <koala>
> 	
> 		Could anyone suggest what I might be doing wrong here? BTW I am
> 		getting the following message in syslog:
> 
The problem is in rbootd on FreeBSD.  The file rmpproto.c needs to have
the following patch applied, and then it will work fine.  I had the same
hting happen to me:

--- rmpproto.c.orig     Thu Apr  2 11:41:28 1998
+++ rmpproto.c  Thu Apr  2 18:35:46 1998
@@ -575,12 +575,8 @@
         */
        memmove((char *)&rconn->rmp.hp_hdr.daddr[0],
                (char *)&rconn->rmp.hp_hdr.saddr[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.

--
Kyle Mestery
StorageTek's Network Systems Group
"Keep honking, I'm reloading."
"Lottery: A tax on people who are bad at math."