From owner-freebsd-current Thu Apr 2 16:45:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA12225 for freebsd-current-outgoing; Thu, 2 Apr 1998 16:45:22 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from icicle.winternet.com (adm@icicle.winternet.com [198.174.169.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA12217 for ; Thu, 2 Apr 1998 16:45:15 -0800 (PST) (envelope-from mestery@mail.winternet.com) Received: (from adm@localhost) by icicle.winternet.com (8.8.8/8.8.8) id SAA05236 for ; Thu, 2 Apr 1998 18:45:10 -0600 (CST) Received: from tundra.winternet.com(198.174.169.11) by icicle.winternet.com via smap (V2.0) id xma005161; Thu, 2 Apr 98 18:44:56 -0600 Received: from localhost (mestery@localhost) by tundra.winternet.com (8.8.7/8.8.4) with SMTP id SAA03484 for ; Thu, 2 Apr 1998 18:44:55 -0600 (CST) X-Authentication-Warning: tundra.winternet.com: mestery owned process doing -bs Date: Thu, 2 Apr 1998 18:44:55 -0600 (CST) From: Kyle Mestery To: freebsd-current@FreeBSD.ORG Subject: rbootd on current Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all. I have a hp300 at home running NetBSD. It works fine booting diskless from a Sparc2 running NetBSD also. However, recently my Sparc2 died, and I was forced to try and use my FreeBSD box to boot the hp300. It did not work at all because FreeBSD's rbootd has a byte-order problem. I searched the NetBSD/hp300 mailing lists to figure this out. Here is a patch that allows FreeBSD's rbootd to function properly. Could this please be committed, as the rbootd in current now is useless for booting an hp300 without it. Thanks! --- 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." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message