Subject: Re: kern/32548: if_ethersubr.c - pseudo-device tap depends on the presence of the ethernet interface
To: None <cube@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-bugs
Date: 01/16/2006 18:30:02
The following reply was made to PR kern/32548; it has been noted by GNATS.

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--