From jacob@jblhome.ping.dk  Thu Jan 15 06:17:48 1998
Received: from ns.ic.dk (qmailr@mail.ic.dk [194.255.107.174] (may be forged))
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id GAA23357
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Jan 1998 06:17:41 -0800 (PST)
          (envelope-from jacob@jblhome.ping.dk)
Received: (qmail 5044 invoked from network); 15 Jan 1998 14:16:17 -0000
Received: from unknown (HELO ic1.ic.dk) (192.168.65.12)
  by 192.168.65.14 with SMTP; 15 Jan 1998 14:16:17 -0000
Received: from jblhome by ic1.ic.dk with UUCP id AA08878
  (5.65c8/IDA-1.4.4j for FreeBSD-gnats-submit@freebsd.org); Thu, 15 Jan 1998 15:13:07 +0100
Received: (from jacob@localhost) by pippin.jblhome.ping.dk (8.8.8/8.7.3) id PAA01450; Thu, 15 Jan 1998 15:11:39 +0100 (CET)
Message-Id: <199801151411.PAA01450@pippin.jblhome.ping.dk>
Date: Thu, 15 Jan 1998 15:11:39 +0100 (CET)
From: Jacob Bohn Lorensen <jacob@jblhome.ping.dk>
Reply-To: jacob@jblhome.ping.dk
To: FreeBSD-gnats-submit@freebsd.org
Subject: Rbootd cannot boot my hp9000s340 (patch included)
X-Send-Pr-Version: 3.2

>Number:         5497
>Category:       bin
>Synopsis:       [PATCH] Rbootd cannot boot my hp9000s340
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 15 06:20:03 PST 1998
>Closed-Date:    Sun Jul 19 21:49:50 PDT 1998
>Last-Modified:  Sun Jul 19 21:52:57 PDT 1998
>Originator:     Jacob Bohn Lorensen
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:
CTM src-cur.3207

	

>Description:

	When I try to setup rbootd to download OpenBSD's bootblock
	(or any other bootblock, I guess) to a hp9000s340 machine I
	have, all I see is and endless conversation like

 	Hp340: Who is my boot host?
	FreeBSD: Your boot host is <pippin>! (my machine name)
	Hp340: Who is my boot host?
	FreeBSD: Your boot host is <pippin>
	...

	

>How-To-Repeat:

	Put a hp340 machine on your network. Put OpenBSD's SYS_UBOOT
	into /usr/mdec/rbootd. Start /usr/libexec/rbootd -a -d. Turn on
	the hp340 and watch the debugging output.

	

>Fix:
	Here is a simple patch, inspired by looking at OpenBSD's rbootd.
	It seems that a FreeBSD-specific bpf-hack is no longer necessary.
	At least, with this change I can boot the hp340 machine.

pippin% cd /usr/src/libexec/rbootd/
pippin% cvs diff -u                      
cvs diff: Diffing .
Index: rmpproto.c
===================================================================
RCS file: /local/CVS/src/libexec/rbootd/rmpproto.c,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 rmpproto.c
--- rmpproto.c  1998/01/04 12:02:36     1.1.1.1
+++ rmpproto.c  1998/01/15 13:44:04
@@ -575,12 +575,7 @@
         */
        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.

	
	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: phk 
State-Changed-When: Thu Apr 30 22:59:00 PDT 1998 
State-Changed-Why:  
awaiting committer 

From: Peter Radcliffe <pir@pir.net>
To: freebsd-gnats-submit@freebsd.org
Cc:  Subject: Re: bin/5497: [PATCH] Rbootd cannot boot my hp9000s340
Date: Sun, 19 Jul 1998 20:57:13 -0400

 Can someone please commit this ?
 It just bit me trying to boot my hp 9000/370 from FreeBSD 2.2.6 :/
 
 P.
 
 -- 
 pir               pir@pir.net      pir@shore.net      pir@leftbank.com
 
State-Changed-From-To: suspended->closed 
State-Changed-By: steve 
State-Changed-When: Sun Jul 19 21:49:50 PDT 1998 
State-Changed-Why:  
Suggested patch committed, thanks and sorry it took so long. :) 
>Unformatted:
