From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Joachim Wickman" Date: Thu, 12 Jun 2003 18:03:43 +0000 Subject: [LARTC] HTB and TC on MAC addresses MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0048_01C33126.1B78DD90" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0048_01C33126.1B78DD90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=20 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,=20 Joachim ------=_NextPart_000_0048_01C33126.1B78DD90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi
 
I've searched the archive for a = solution where I=20 want to limit/shape WLAN users. I only know's their MAC, because they = get their=20 IP from dhcp.
 
> Why not, just use negative offsets with U32 to = access
>the=20 14-byte eth frame header before the IP header:
>
>Decimal=20 Ofs Description
>-----------------------------------
>-14: = DST MAC,=20 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=20 example with MAC address 00:04:e2:5f:eb:e4.
 
And, is it possible to shape so = everyone gets=20 256kbit each?
 
Thx,
  Joachim
 
------=_NextPart_000_0048_01C33126.1B78DD90-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/