All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] filtering
Date: Mon, 25 Apr 2005 11:35:24 +0000	[thread overview]
Message-ID: <426CD5FC.5080804@dsl.pipex.com> (raw)
In-Reply-To: <7034e7b505042503525f04aa22@mail.gmail.com>

Grace Baldonasa wrote:
> Hi,
> 
> Can I use mac address as classifiers in the filters?

Yes for dst mac A1:B2:C3:D4:E5:F6 it's

tc filter add dev eth0 parent 1:0 protocol ip prio 1 \
u32 match u16 0x0800 0xFFFF at -2 \
match u32 0xC3D4E5F6 0xFFFFFFFF at -12 \
match u16 0xA1B2 0xFFFF at -14 \
flowid 1:1

For src I assume you can just change the offsets - I've not tried it as 
there is an iptables match for src MAC.

Andy.


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  reply	other threads:[~2005-04-25 11:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-25 10:52 [LARTC] filtering Grace Baldonasa
2005-04-25 11:35 ` Andy Furniss [this message]
2005-04-26 12:06 ` Leo

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=426CD5FC.5080804@dsl.pipex.com \
    --to=andy.furniss@dsl.pipex.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.