From owner-freebsd-net Thu Feb 15 8:39: 8 2001 Delivered-To: freebsd-net@freebsd.org Received: from urban.iinet.net.au (urban.iinet.net.au [203.59.24.231]) by hub.freebsd.org (Postfix) with ESMTP id CE98C37B4EC; Thu, 15 Feb 2001 08:39:03 -0800 (PST) Received: from muzak.iinet.net.au (muzak.iinet.net.au [203.59.24.237]) by urban.iinet.net.au (8.8.7/8.8.7) with ESMTP id AAA24228; Fri, 16 Feb 2001 00:39:01 +0800 Received: from elischer.org (i076-013.nv.iinet.net.au [203.59.76.13]) by muzak.iinet.net.au (8.8.5/8.8.5) with ESMTP id AAA16282; Fri, 16 Feb 2001 00:36:20 +0800 Message-ID: <3A8C0614.3131FB3@elischer.org> Date: Thu, 15 Feb 2001 08:38:44 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Adrian Chadd Cc: freebsd-net@FreeBSD.org Subject: Re: vlan panics? References: <20010215061533.A68002@hub.freebsd.org> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Adrian Chadd wrote: > > Hi, > > I'm using the vlan code in FreeBSD-stable. > > I've discovered that on the fxp, if I ifconfig a vlan up without > ifconfig'ing the parent interface (fxp) up, I'll get a panic. > I don't have the bt handy at the moment but basically the codepath > is bringing the vlan interface up, sending the gratuituous(sp)? arp > request out the vlan interface, which sends it out the parent interface. > The fxp code doesn't check whether the interface has been initialised > when it attempts to queue a packet for outbound, and you get a panic. > > When I try the same thing on a machine with a tl interface it works > fine. > > Now, I can hear people shouting "fix the fxp driver!", but I'm not > sure that is the right solution. (However I do believe the fxp > driver should have a check in there in any case.) > > I believe that if a vlan interface is attached to a device and configured > up the device itself should also be configured up. This way the initial > gratuituous(sp?) arp request will make it on to the wire. there's an fxp-Vlan patch floating around somewhere. > > Opinions? > > Thanks! > > Adrian > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message