From owner-freebsd-net Wed Sep 30 20:06:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA26266 for freebsd-net-outgoing; Wed, 30 Sep 1998 20:06:19 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from at.dotat.com (zed.dotat.com [203.38.154.39]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA26249 for ; Wed, 30 Sep 1998 20:06:04 -0700 (PDT) (envelope-from hart@at.dotat.com) Received: from at.dotat.com (localhost.dotat.com [127.0.0.1]) by at.dotat.com (8.8.7/8.8.5) with ESMTP id MAA17458 for ; Thu, 1 Oct 1998 12:37:47 +0930 (CST) Message-Id: <199810010307.MAA17458@at.dotat.com> To: freebsd-net@FreeBSD.ORG Subject: Re: 802.1Q VLAN support In-reply-to: Your message of "Wed, 30 Sep 1998 12:23:11 -0400." <199809301623.MAA16321@khavrinen.lcs.mit.edu> Date: Thu, 01 Oct 1998 12:37:46 +0930 From: Leigh Hart Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Garrett, Garrett Wollman wrote: ... [on if_vlan.c] ... > Not all hardware and drivers are capable of supporting larger packets. > The correct thing is, for those drivers which are able, to so indicate > by setting their ifi_hdrlen to sizeof(struct ether_vlan_header) rather > than sizeof(struct ether_header). You will note the following code > in vlan_config: > > if (p->if_data.ifi_hdrlen == sizeof(struct ether_vlan_header)) > ifv->ifv_if.if_mtu = p->if_mtu; > else > ifv->ifv_if.if_mtu = p->if_data.ifi_mtu - EVL_ENCAPLEN; Is this changing the MTU of the physical interface? > I had originally contemplated implementing this functionality with > subinterfaces (a la Slowaris), but expediency quickly won out, so I > did the thing which avoided any painful work or interface changes. So how does each VLAN appear on the FreeBSD box under your model? Cheers Leigh -- | "By the time they had diminished | Leigh Hart, | | from 50 to 8, the other dwarves | Dotat Communications Pty Ltd | | began to suspect 'Hungry' ..." | GPO Box 487 Adelaide SA 5001 | | -- Gary Larson, "The Far Side" | http://www.dotat.com/hart/ | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message