NetBSD Problem Report #36574
From martin@duskware.de Thu Jun 28 12:25:39 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id E262063B8E6
for <gnats-bugs@gnats.netbsd.org>; Thu, 28 Jun 2007 12:25:38 +0000 (UTC)
Message-Id: <20070628113902.E0A6463B882@narn.NetBSD.org>
Date: Thu, 28 Jun 2007 11:39:02 +0000 (UTC)
From: misho@aitnet.eu
Reply-To: misho@aitnet.eu
To: netbsd-bugs-owner@NetBSD.org
Subject: Can't add gif interface to bridge
X-Send-Pr-Version: www-1.0
>Number: 36574
>Category: kern
>Synopsis: Can't add gif interface to bridge
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 28 12:30:00 +0000 2007
>Closed-Date:
>Last-Modified: Sat Nov 20 05:46:38 +0000 2021
>Originator: Michael Pounov
>Release: NetBSD 4.99.21 -current at 2007-06-25
>Organization:
AITNET
>Environment:
>Description:
Can't add gif interface to bridge for transparent ipsec.
In versions NetBSD 3.x; 4.x_BETAx and NetBSD 4.99.3 gif interfaces work normaly and bridge can add gif0.
>How-To-Repeat:
ifconfig gif0 create
ifconfig gif0 tunnel 10.10.10.10 10.20.30.40
ifconfig gif0 mtu 1500 up
ifconfig bridge0 create
brconfig bridge0 add ex0 add gif0
... at this moment brconfig output error:: Invalid argument: gif0
>Fix:
I diff the brconfig in sbin/brconfig.c with work correctly version of sources in NetBSD 4.0_BETA2 at 2007-04-24 in my workstation, but user land tool has no changes.
After that look in sys/net and find tiny changes in if_bridgevar.h. changes only type of variable ifbicu_buf to void*. Nothing scary and serious.
In if_bridge.c is same situation correct type-casts for new type declared in header.
At first view I can't see reason for this bug. ??????!!!!
Dummy speed-fix at this moment, may be this interface bridge driver use other version from netbsd-4 branch
>Release-Note:
>Audit-Trail:
From: Quentin Garnier <cube@cubidou.net>
To: gnats-bugs@NetBSD.org
Cc: misho@aitnet.eu
Subject: Re: kern/36574: Can't add gif interface to bridge
Date: Thu, 28 Jun 2007 14:42:44 +0200
--Uu2n37VG4rOBDVuR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Jun 28, 2007 at 12:30:00PM +0000, misho@aitnet.eu wrote:
> >Number: 36574
> >Category: kern
> >Synopsis: Can't add gif interface to bridge
> >Confidential: no
> >Severity: serious
> >Priority: high
> >Responsible: kern-bug-people
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Thu Jun 28 12:30:00 +0000 2007
> >Originator: Michael Pounov
> >Release: NetBSD 4.99.21 -current at 2007-06-25
> >Organization:
> AITNET
> >Environment:
> >Description:
> Can't add gif interface to bridge for transparent ipsec.
> In versions NetBSD 3.x; 4.x_BETAx and NetBSD 4.99.3 gif interfaces work n=
ormaly and bridge can add gif0.
> >How-To-Repeat:
> ifconfig gif0 create
> ifconfig gif0 tunnel 10.10.10.10 10.20.30.40
> ifconfig gif0 mtu 1500 up
> ifconfig bridge0 create
> brconfig bridge0 add ex0 add gif0
> ... at this moment brconfig output error:: Invalid argument: gif0
etherip support has been split from gif(4) into etherip(4) a while ago.
So replace gif here with etherip (and make sure you have "pseudo-device
etherip" in your kernel configuration).
--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"You could have made it, spitting out benchmarks
Owe it to yourself not to fail"
Amplifico, Spitting Out Benchmarks, Hometakes Vol. 2, 2005.
--Uu2n37VG4rOBDVuR
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)
iQEVAwUBRoOsxNgoQloHrPnoAQIwbAf+JV7Mp3tvJOMdmX72T0b7tdn+gxIh8JIA
OOq6l25AT/4RPgrdH3P/D35lqtyogQ9409hpmSHGD/PxMeeU6e5jCmFqxIL6nUTS
KRYUoi0s4fMVoXvJ/w+Orx1pB9wL3S+/vtfEYkHk/NFJ5g+pQneiZFZSILYHWA6F
i6iGJ5KXkhF/XduKW/JXhUnywD+V9CSZ7QlH4iKK3vgxwPTaBbNRLHLX9xC1n/yZ
rMohqoL85tlPysly01TOebC7d0dguLpP5npTPJUkYNtDiN7jtZrpgg78P2bAsGb7
KihmOX+GsAdKdJEhoDN0h5NL3bW2NZBnaqWb1x5f2Z5uda7eArNdfA==
=cELl
-----END PGP SIGNATURE-----
--Uu2n37VG4rOBDVuR--
State-Changed-From-To: open->feedback
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Mon, 23 Mar 2020 17:43:30 +0000
State-Changed-Why:
Does it work if you use etherip(4) instead?
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 20 Nov 2021 05:46:38 +0000
State-Changed-Why:
feedback mail is bouncing
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.