[LARTC] HTB and TC on MAC addresses

Linux Advanced Routing and Traffic Control

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

 



Hi
 
I've searched the archive for a solution where I want to limit/shape WLAN users. I only know's their MAC, because they get their IP from dhcp.
 
> Why not, just use negative offsets with U32 to access
>the 14-byte eth frame header before the IP header:
>
>Decimal Ofs Description
>-----------------------------------
>-14: DST MAC, 6 bytes
>-8: SRC MAC, 6 bytes
>-2: Eth PROTO, 2 bytes, eg. ETH_P_IP
>0: Protocol header (IP Header)
>
 
Is the above true? If so, can you give me an example with MAC address 00:04:e2:5f:eb:e4.
 
And, is it possible to shape so everyone gets 256kbit each?
 
Thx,
  Joachim
 

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