Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2001 06:15:33 -0800
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        freebsd-net@freebsd.org
Subject:   vlan panics?
Message-ID:  <20010215061533.A68002@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

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.

Opinions?

Thanks!



Adrian



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




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