From owner-freebsd-bugs Thu Jan 15 06:20:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA23636 for freebsd-bugs-outgoing; Thu, 15 Jan 1998 06:20:18 -0800 (PST) (envelope-from owner-freebsd-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA23602; Thu, 15 Jan 1998 06:20:06 -0800 (PST) (envelope-from gnats) 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 ; 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 Reply-To: jacob@jblhome.ping.dk To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5497: Rbootd cannot boot my hp9000s340 (patch included) Sender: owner-freebsd-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5497 >Category: bin >Synopsis: Rbootd cannot boot my hp9000s340 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 15 06:20:03 PST 1998 >Last-Modified: >Originator: Jacob Bohn Lorensen >Organization: >Release: FreeBSD 3.0-CURRENT i386 >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 ! (my machine name) Hp340: Who is my boot host? FreeBSD: Your boot host is ... >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. >Audit-Trail: >Unformatted: