Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2001 12:05:48 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        Yar Tikhiy <yar@FreeBSD.ORG>
Cc:        Archie Cobbs <archie@dellroad.org>, Mike Tancsa <mike@sentex.net>, stable@FreeBSD.ORG, net@FreeBSD.ORG
Subject:   Re: kernel panic when bringing up a VLAN interface (netgraph?)
Message-ID:  <200108301905.f7UJ5m043601@arch20m.dellroad.org>
In-Reply-To: <20010830195759.A21176@comp.chem.msu.su> "from Yar Tikhiy at Aug 30, 2001 07:58:00 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Yar Tikhiy writes:
> I'd suggest the following fix.  Not sure if it should be pushed
> into the upcoming 4.4-RELEASE...
> 
> Index: ng_ether.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/netgraph/ng_ether.c,v
> retrieving revision 1.18
> diff -u -r1.18 ng_ether.c
> --- ng_ether.c	2001/01/30 20:51:52	1.18
> +++ ng_ether.c	2001/08/30 15:33:24
> @@ -798,7 +798,8 @@
>  
>  		/* Create nodes for any already-existing Ethernet interfaces */
>  		TAILQ_FOREACH(ifp, &ifnet, if_link) {
> -			if (ifp->if_type == IFT_ETHER)
> +			if (ifp->if_type == IFT_ETHER ||
> +			    ifp->if_type == IFT_L2VLAN)
>  				ng_ether_attach(ifp);
>  		}
>  		break;

Yes, this is the correct fix .. nice and simple :-)

Definitely a MFC candidate.

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108301905.f7UJ5m043601>