Date: Tue, 8 Nov 2005 14:22:48 -0500 From: Tom Rhodes <trhodes@FreeBSD.org> To: Max Laier <max@love2party.net> Cc: green@FreeBSD.org, freebsd-doc@FreeBSD.org, freebsd-pf@FreeBSD.org Subject: Re: Tun and ALTQ Message-ID: <20051108142248.5745d091.trhodes@FreeBSD.org> In-Reply-To: <200511081946.19860.max@love2party.net> References: <436FDC90.3020108@cuk.nu> <4370AA76.8000309@cuk.nu> <20051108171544.GI37350@green.homeunix.org> <200511081946.19860.max@love2party.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 8 Nov 2005 19:45:59 +0100 Max Laier <max@love2party.net> wrote: > On Tuesday 08 November 2005 18:15, Brian Fundakowski Feldman wrote: > > On Tue, Nov 08, 2005 at 02:39:02PM +0100, Marko Cuk wrote: > > > It seems that it work. Thanks. > > > > > > Damn, for vlan's ( 802.1Q) you should specify "em", for "tun", vice > > > versa... what a mess, hehe. > > > > No prob; I don't see why using the em(4) backing the tun(4) wouldn't > > work for ALTQ _IF_ you actually tagged the (PPPoE?) traffic on em(4). > > I think that might be really hard, though, so for ALTQ you should > > probably just specify the "logical" interface that you intend to > > limit (that would be the IP tun(4) rather than the PPPoE em(4)). > > The problem with tun(4) in contrast to vlan(4) is that in some cases the > packet has to go through userland (i.e. userland PPPoE). During this detour > the packet loses the ALTQ mbuf_tag and thus can no longer be stuck into the > right queue. That is why there is ALTQ support on tun(4) eventhough it > doesn't make that much sense to introduce "unnatural" queueing in the pseudo > interface. For vlan(4) there is no such problem (VLANs are handled in the > kernel all the way) so it's easy to stick the ALTQ tags on the packet and > queue on the hardware interface underneath. > > > Do you have suggestion on what would be good text to go into pf.conf(5) > > so that this particular case is documented? > > [-> doc@, maybe somebody is interested/creative? ] I'll work with Max on this. -- Tom Rhodes
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051108142248.5745d091.trhodes>