Re: tc, VLAN, ebtables issue

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le lun 31/01/2005 Ã 07:12, kingz a Ãcrit :
> Hi all,
> 
> I am testing one QOS system, I want to control bandwidth by VLAN id.

To filter a vlan and put the flow in a class, I use the 
following code in a C program:

...tc filter add dev %s parent %d:%d prio %d protocol all u32" \
                     " match u32 0x00008100 0x0000ffff at -8" \
                     " match u32 0x0%03x0000 0x0fff0000 at -4" \
                     " flowid %d:%d\n"...


The u32 filter can have negative position indication, here at position 
-4 there is the vlan number, and at -8 there is the 0X8100 identifying
the tag, (the zero position being the start of the ip frame).

This works only if you don't have the very modern ethernet cards that
handle the tagged frames at their level.

If you have such a card, then you never see the tagged frame, only 
normal ip frames coming from the "virtual" vlan ethernet devices. 

I don't think this is much help but good luck with your problem.





_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux