Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Apr 1998 18:44:55 -0600 (CST)
From:      Kyle Mestery <mestery@winternet.com>
To:        freebsd-current@FreeBSD.ORG
Subject:   rbootd on current
Message-ID:  <Pine.GSO.3.96.980402184133.3477A-100000@tundra.winternet.com>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.980402184133.3477A-100000>