NetBSD Problem Report #3571
Received: (qmail 24132 invoked from network); 4 May 1997 00:29:13 -0000
Message-Id: <199705040019.RAA23563@arkham.gossamer.com>
Date: Sat, 3 May 1997 17:19:09 -0700 (PDT)
From: "Jonathan O'Brien" <obrien@arkham.gossamer.com>
Reply-To: obrien@arkham.gossamer.com
To: gnats-bugs@gnats.netbsd.org
Subject: patch to if_strip.c
X-Send-Pr-Version: 3.95
>Number: 3571
>Category: kern
>Synopsis: if_strip.c fails to compile
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 03 17:35:00 +0000 1997
>Closed-Date: Tue May 06 21:49:45 +0000 1997
>Last-Modified: Wed May 07 04:49:53 +0000 1997
>Originator: Jonathan O'Brien
>Release: $NetBSD: if_strip.c,v 1.9 1997/03/27 20:36:18 thorpej Exp $
>Organization:
SFC
>Environment:
System: NetBSD arkham 1.2D NetBSD 1.2D (ARKHAM) #0: Fri May 2 23:54:40 PDT 1997 obrien@arkham:/usr/src/sys/arch/sparc/compile/ARKHAM sparc
>Description:
if_strip.c contains a couple of bogons that won't allow it to
compile.
>How-To-Repeat:
Compile a kernel with a config file that contains:
pseudo-device strip 1
>Fix:
Although I don't have one of these radio clocks (wish I did),
the following patch seems to make everything happy.
*** if_strip.c.orig Fri Mar 28 04:22:10 1997
--- if_strip.c Fri May 2 22:24:11 1997
***************
*** 381,387 ****
*/
sc->sc_xxx = (u_char *)malloc(MCLBYTES, M_MBUF, M_WAITOK);
if (sc->sc_xxx)
! sc->sc_ep = sc_xxx + SLBUFSIZE;
else {
printf("%s: can't allocate buffer\n",
sc->sc_if.if_xname);
--- 381,387 ----
*/
sc->sc_xxx = (u_char *)malloc(MCLBYTES, M_MBUF, M_WAITOK);
if (sc->sc_xxx)
! sc->sc_ep = sc->sc_xxx + SLBUFSIZE;
else {
printf("%s: can't allocate buffer\n",
sc->sc_if.if_xname);
***************
*** 1057,1062 ****
--- 1057,1063 ----
register int len;
{
register struct mbuf *m;
+ register u_char *p;
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m == NULL)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mikel
State-Changed-When: Tue May 6 21:49:45 1997
State-Changed-Why:
fixed as suggested, thanks.
>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.