From owner-freebsd-net@FreeBSD.ORG Fri Dec 17 22:34:55 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E611816A4CE for ; Fri, 17 Dec 2004 22:34:55 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA14E43D2F for ; Fri, 17 Dec 2004 22:34:55 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id iBHMZJXw030550; Fri, 17 Dec 2004 14:35:19 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id iBHMZJ18030549; Fri, 17 Dec 2004 14:35:19 -0800 Date: Fri, 17 Dec 2004 14:35:19 -0800 From: Brooks Davis To: Donatas Message-ID: <20041217223519.GB27607@odin.ac.hmc.edu> References: <005801c4e42a$a1825890$9f90a8c0@donatas> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eJnRUKwClWJh1Khz" Content-Disposition: inline In-Reply-To: <005801c4e42a$a1825890$9f90a8c0@donatas> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: freebsd-net@freebsd.org Subject: Re: vlan double tagging X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2004 22:34:56 -0000 --eJnRUKwClWJh1Khz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Dec 17, 2004 at 01:22:02PM +0200, Donatas wrote: > hello, > i'd like to ask if there's any possibility to pass double tagged vlan packets through freebsd 5.x routers? > and....how many level1 vlans are supported on one parent device? I don't know what happens with double tagged vlan packets. There should be no limit on the number of vlans supported, but with the current code, performance will be crap for large numbers because it searches the list of all vlans to match the tag. We need to add per-interface array of pointers to vlan interfaces instead. The number of vlans maximum allowed by the standard is small enough that blowing that memory is worth if for constant access time compared the complexity of using a balanced tree. > maybe there are some solutions in netgraph sphere? I'm not sure what you mean here? -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --eJnRUKwClWJh1Khz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBw18mXY6L6fI4GtQRAlMSAJ9KrwwUIx79GmhfDdkQAjlx1PMM+wCg00Da mH2HMWxK+8umN2uwKLr3yu0= =m1Ro -----END PGP SIGNATURE----- --eJnRUKwClWJh1Khz--