From owner-freebsd-net Sun Dec 31 19:55:44 2000 From owner-freebsd-net@FreeBSD.ORG Sun Dec 31 19:55:41 2000 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mail.interware.hu (mail.interware.hu [195.70.32.130]) by hub.freebsd.org (Postfix) with ESMTP id 07E3437B400 for ; Sun, 31 Dec 2000 19:55:41 -0800 (PST) Received: from bissau-27.budapest.interware.hu ([195.70.53.155] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 14Cw4I-0007Oo-00; Mon, 01 Jan 2001 04:55:30 +0100 Sender: julian@FreeBSD.ORG Message-ID: <3A4FFF6B.F8C20C5@elischer.org> Date: Sun, 31 Dec 2000 19:54:19 -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: "C. Stephen Gunn" Cc: Garrett Wollman , Andrea Franceschini , Ferdinand Goldmann , "freebsd-net@FreeBSD.ORG" Subject: Re: Problems with VLAN and natd. References: <200012312258.RAA53006@tsunami.waterspout.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "C. Stephen Gunn" wrote: > > On Sun, 31 Dec 2000 15:33:36 EST, Garrett Wollman wrote: > > > Actually, no, it's not what you want (although the underlying code is > > broken enough to let it ``work'' anyway). What you want is to fix the > > parent network interface driver to indicate its readiness to receive > > 1522-octet frames by setting its if_data.ifi_hdrlen field to 18 rather > > than 14. > > Garrett is correct. My confirmation was intended to tell you it > would work, not that you're in an ideal situation. Then again, you're > applying miscellaneous patches to your ethernet drivers to get vlans > to work, so you're probably aware you're in the weeds. > > I'm not sure that the solution is simply a fix to the parent ethernet > device driver, since it's legitimate (but perhaps not advisable) > to have tagged and untagged frames on the same wire. Setting the > ifi_hdrlen for the entire physical interface seems incomplete also. > > The current VLAN (and Ethernet) implementaiton in FreeBSD needs work. > FreeBSD should should handle multiple ethernet encapsulations on > the same physical interface, and relay packets to/from some subordinate > interface. This support would factor-out the need for current > work-arounds like if_vlan, and if_ef, and perhaps even if_tap. sounds like a perfect use for netgraph.. > > - Steve > > -- > C. Stephen Gunn URL: http://www.waterspout.com/ > WaterSpout Communications, Inc. Email: csg@waterspout.com > 427 North 6th Street Phone: +1 765.742.6628 > Lafayette, IN 47901 Fax: +1 765.742.0646 > > 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 ---> X_.---._/ from Perth, presently in: Budapest v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message