Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Julian Anastasov <ja@ssi.bg>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Filter MAC address
Date: Sun, 22 Dec 2002 16:35:22 +0000	[thread overview]
Message-ID: <marc-lartc-104057488911573@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104054250031109@msgid-missing>


	Hello,

On Sun, 22 Dec 2002, Nickola Kolev wrote:

> > I need to classified the traffic by looking at the packet destination
> > and source MAC address. Can anyone here suggest ways to do this.
> >
> > I have read through the HOWTO documentation, from there I know that
> > U32 filter can only filter out IP or higher layer. May I know why U32
> > filter did not support datalink layer (MAC address)? Is it that when

	This is a lie.

> > packet entering TC, the datalink layer no longer there? Are there any
> > filter which can filter the MAC address?

	You can filter with U32 by src/dst MAC on ingress and
by dst MAC on egress. On egress the src MAC is replaced with
new one and there is no good reason to apply U32 filters for sender's
MAC.

> > Before this, I have successfully implement QoS through source and
> > destination IP address using CBQ. Here I would like to thanks LARTC
> > for the help.
> >
>
> Yes, you can do this, but using fw marking, not u32 classifier. Just

	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)

> search through the various
> netfilter extensions - you really can do miracles with them :))
>
> E-gards,
> Nickola

Regards

--
Julian Anastasov <ja@ssi.bg>

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

      parent reply	other threads:[~2002-12-22 16:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-22  7:33 [LARTC] Filter MAC address Qos Switch
2002-12-22  9:02 ` Nickola Kolev
2002-12-22 16:35 ` Julian Anastasov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-104057488911573@msgid-missing \
    --to=ja@ssi.bg \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox