NetBSD Problem Report #32548
From www@netbsd.org Mon Jan 16 17:59:06 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id C8FD763B917; Mon, 16 Jan 2006 17:59:06 +0000 (UTC)
Message-Id: <20060116175906.C8FD763B917@narn.netbsd.org>
Date: Mon, 16 Jan 2006 17:59:06 +0000 (UTC)
From: chwalek@poczta.onet.pl
Reply-To: chwalek@poczta.onet.pl
To: gnats-bugs@netbsd.org
Subject: if_ethersubr.c - pseudo-device tap depends on the presence of the ethernet interface
X-Send-Pr-Version: www-1.0
>Number: 32548
>Category: kern
>Synopsis: if_ethersubr.c - pseudo-device tap depends on the presence of the ethernet interface
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: cube
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Jan 16 18:00:01 +0000 2006
>Closed-Date: Mon Jan 16 22:51:03 +0000 2006
>Last-Modified: Sat Jan 21 06:25:01 +0000 2006
>Originator: Pawel Chwalowski
>Release: 3.0
>Organization:
>Environment:
NetBSD wodogrzmot 3.0 NetBSD 3.0 (WODOGRZMOT) #4: Sun Jan 15 15:59:11 CET 2006 pawel@wodogrzmot:/usr/src/sys/arch/i386/compile/WODOGRZMOT i386
>Description:
I cant't compile kernel without ethernet devices.
After "make depend":
../../../../net/if_ethersubr.c:107:2: #error You have included NETATALK or a pseudo-device in your configuration that depends on the presence of ethernet interfaces, but have no such interfaces configured. Check if you really need pseudo-device bridge, pppoe, vlan or options NETATALK.
mkdep: compile failed.
*** Error code 1
Stop.
make: stopped in /usr/src/sys/arch/i386/compile/WODOGRZMOT.TEST
wodogrzmot: {17} grep NETATALK ../../conf/WODOGRZMOT.TEST
#options NETATALK # AppleTalk networking protocols
WODOGRZMOT.TEST config file:
# network pseudo-devices
pseudo-device bpfilter 8 # Berkeley packet filter
pseudo-device ipfilter # IP filter (firewall) and NAT
pseudo-device loop # network loopback
pseudo-device ppp 2 # Point-to-Point Protocol
#pseudo-device pppoe # PPP over Ethernet (RFC 2516)
pseudo-device sl 2 # Serial Line IP
pseudo-device strip 2 # Starmode Radio IP (Metricom)
pseudo-device irframetty # IrDA frame line discipline
pseudo-device tap # virtual Ethernet
pseudo-device tun 2 # network tunneling over tty
pseudo-device gre 2 # generic L3 over IP tunnel
pseudo-device gif 4 # IPv[46] over IPv[46] tunnel (RFC1933)
#pseudo-device faith 1 # IPv[46] tcp relay translation i/f
#pseudo-device stf 1 # 6to4 IPv6 over IPv4 encapsulation
#pseudo-device vlan # IEEE 802.1q encapsulation
#pseudo-device bridge # simple inter-network bridging
#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
#pseudo-device pf # PF packet filter
#pseudo-device pflog # PF log if
>How-To-Repeat:
Remove all ethernet devices from a kernel config file and try to recompile a kernel.
>Fix:
--- src/sys/net/if_ethersubr.c_ori 2006-01-15 15:10:35.000000000 +0100
+++ src/sys/net/if_ethersubr.c 2006-01-15 15:11:59.000000000 +0100
@@ -104,7 +104,7 @@
/*
* XXX there should really be a way to issue this warning from within config(8)
*/
-#error You have included NETATALK or a pseudo-device in your configuration that depends on the presence of ethernet interfaces, but have no such interfaces configured. Check if you really need pseudo-device bridge, pppoe, vlan or options NETATALK.
+#error You have included NETATALK or a pseudo-device in your configuration that depends on the presence of ethernet interfaces, but have no such interfaces configured. Check if you really need pseudo-device bridge, pppoe, tap, vlan or options NETATALK.
#endif
#if NBPFILTER > 0
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->cube
Responsible-Changed-By: cube@netbsd.org
Responsible-Changed-When: Mon, 16 Jan 2006 18:28:58 +0000
Responsible-Changed-Why:
My bug.
From: Quentin Garnier <cube@cubidou.net>
To: gnats-bugs@netbsd.org
Cc: chwalek@poczta.onet.pl
Subject: Re: kern/32548: if_ethersubr.c - pseudo-device tap depends on the presence of the ethernet interface
Date: Mon, 16 Jan 2006 19:28:38 +0100
--pd495SECmvzXpBRb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Mon, Jan 16, 2006 at 06:00:01PM +0000, chwalek@poczta.onet.pl wrote:
> >Number: 32548
> >Category: kern
> >Synopsis: if_ethersubr.c - pseudo-device tap depends on the presen=
ce of the ethernet interface
> >Confidential: no
> >Severity: non-critical
> >Priority: low
> >Responsible: kern-bug-people
> >State: open
> >Class: change-request
> >Submitter-Id: net
> >Arrival-Date: Mon Jan 16 18:00:01 +0000 2006
> >Originator: Pawel Chwalowski
> >Release: 3.0
> >Organization:
> >Environment:
> NetBSD wodogrzmot 3.0 NetBSD 3.0 (WODOGRZMOT) #4: Sun Jan 15 15:59:11 CET=
2006 pawel@wodogrzmot:/usr/src/sys/arch/i386/compile/WODOGRZMOT i386
> >Description:
> I cant't compile kernel without ethernet devices.
>=20
> After "make depend":
> ../../../../net/if_ethersubr.c:107:2: #error You have included NETATALK o=
r a pseudo-device in your configuration that depends on the presence of eth=
ernet interfaces, but have no such interfaces configured. Check if you real=
ly need pseudo-device bridge, pppoe, vlan or options NETATALK.
> mkdep: compile failed.
[...]
> >How-To-Repeat:
> Remove all ethernet devices from a kernel config file and try to recompil=
e a kernel.
> >Fix:
> --- src/sys/net/if_ethersubr.c_ori 2006-01-15 15:10:35.000000000 +0100
> +++ src/sys/net/if_ethersubr.c 2006-01-15 15:11:59.000000000 +0100
> @@ -104,7 +104,7 @@
> /*
> * XXX there should really be a way to issue this warning from within co=
nfig(8)
> */
> -#error You have included NETATALK or a pseudo-device in your configurati=
on that depends on the presence of ethernet interfaces, but have no such in=
terfaces configured. Check if you really need pseudo-device bridge, pppoe, =
vlan or options NETATALK.
> +#error You have included NETATALK or a pseudo-device in your configurati=
on that depends on the presence of ethernet interfaces, but have no such in=
terfaces configured. Check if you really need pseudo-device bridge, pppoe, =
tap, vlan or options NETATALK.
> #endif
> =20
> #if NBPFILTER > 0
That's not the correct fix, actually. tap(4) _is_ a full Ethernet
interface, and therefore should depend on arp just like all the others.
I'll fix that in -current later tonight and request a pull-up. I think
I had that one before, and I probably fixed it on my laptop, but then
forgot to commit it. It's quite an unlikely configuration...
Of course, there should be some way to deal with that directly from
config(1).
--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.
--pd495SECmvzXpBRb
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iQEVAwUBQ8vl1dgoQloHrPnoAQL8FAf/T/QvexcX7LrhxmoAaPtCTel4CE5lUFFZ
wesb4cZfbjuHH4B0WWWbvpN1I4Of1aLzQ7el+ULzJHI9hK9IsgvPHy1OsgCf6ZhW
4PYlkeyVyoSdi6geIlFW7JsW/no8TZzErYIj+xqBs4zjGxYIu46pGl4Z3JvAtOUs
k821pjGU/w/oIkHv3Jhfb/pu8XYPylNXQ2kyYtss5R9S9TFiO8ER/BslwLCzWSNj
YvwJf/7CaKw5poRSkGGm0b3aUiRHYCxrygfumLQYVPjHawgmei6vEur7UTqV5b3d
f0MUMogEJpjcfKTtwn63g5DgGlBukGBrK0vqu0KdOzKFMFeYgEg2+Q==
=MXGy
-----END PGP SIGNATURE-----
--pd495SECmvzXpBRb--
From: Quentin Garnier <cube@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/32548 CVS commit: src/sys/conf
Date: Mon, 16 Jan 2006 22:49:23 +0000 (UTC)
Module Name: src
Committed By: cube
Date: Mon Jan 16 22:49:23 UTC 2006
Modified Files:
src/sys/conf: files
Log Message:
tap(4) depends on arp: it is an Ethernet interface, after all.
Solves PR 32548 by Pawel Chwalowski.
To generate a diff of this commit:
cvs rdiff -r1.751 -r1.752 src/sys/conf/files
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: cube@netbsd.org
State-Changed-When: Mon, 16 Jan 2006 22:51:03 +0000
State-Changed-Why:
Fixed by rev. 1.752 of src/sys/conf/files.
From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/32548 CVS commit: [netbsd-3] src/sys/conf
Date: Sat, 21 Jan 2006 06:22:25 +0000 (UTC)
Module Name: src
Committed By: snj
Date: Sat Jan 21 06:22:25 UTC 2006
Modified Files:
src/sys/conf [netbsd-3]: files
Log Message:
Pull up following revision(s) (requested by cube in ticket #1122):
sys/conf/files: revision 1.752
tap(4) depends on arp: it is an Ethernet interface, after all.
Solves PR 32548 by Pawel Chwalowski.
To generate a diff of this commit:
cvs rdiff -r1.712.2.7 -r1.712.2.8 src/sys/conf/files
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>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.