NetBSD Problem Report #1823
From gnats Thu Dec 7 17:06:24 1995
Received: from zelz19.zel.kfa-juelich.de by pain.lcs.mit.edu (8.6.12/8.6.9) with ESMTP id QAA02021 for <gnats-bugs@gnats.netbsd.org>; Thu, 7 Dec 1995 16:57:02 -0500
Message-Id: <199512072106.WAA00488@zelz19.zel.kfa-juelich.de>
Date: Thu, 7 Dec 1995 22:06:10 +0100
From: drochner@zelux6.zel.kfa-juelich.de
Reply-To: drochner@zelux6.zel.kfa-juelich.de
To: gnats-bugs@gnats.netbsd.org
Subject: new byteorder related bug in libsa
X-Send-Pr-Version: 3.95
>Number: 1823
>Category: misc
>Synopsis: new byteorder related bug in libsa
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 07 17:20:02 +0000 1995
>Closed-Date: Fri Dec 08 04:54:27 +0000 1995
>Last-Modified: Tue Jan 21 08:45:43 +0000 2014
>Originator: Matthias Drochner
>Release: 1.1
>Organization:
KFA Juelich
>Environment:
NetBSD 1.1 / -current
System: NetBSD zelz19 1.1 NetBSD 1.1 (MIST) #11: Fri Dec 1 19:15:50 MET 1995 root@zelz19:/usr/src/sys/arch/i386/compile/MIST i386
>Description:
On little-endian machines, bootparam fails.
A bad (truncated) remote port number will be cached after the whoami call and
used for subsequent root and swap calls.
(This was already addressed in pr misc/1404, but it appeares again
in current sources.)
>How-To-Repeat:
Build a network booter on i386.
>Fix:
This works for me:
*** bootparam.c.orig Sat Oct 14 03:46:05 1995
--- bootparam.c Thu Dec 7 22:15:13 1995
***************
*** 175,177 ****
*/
- bp_server_port = repl->port;
--- 175,176 ----
***************
*** 179,181 ****
printf("bp_whoami: server at %s:%d\n",
! inet_ntoa(bp_server_addr), ntohs(bp_server_port));
#endif
--- 178,180 ----
printf("bp_whoami: server at %s:%d\n",
! inet_ntoa(bp_server_addr), ntohl(repl->port));
#endif
***************
*** 186,188 ****
BOOTPARAM_VERS,
! (int)ntohs(bp_server_port));
--- 185,187 ----
BOOTPARAM_VERS,
! ntohl(repl->port));
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: gwr
State-Changed-When: Thu Dec 7 23:54:27 EST 1995
State-Changed-Why:
Applied a correction similar to the one suggested.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.