From: gypsy <gypsy@iswest.com>
To: lartc@vger.kernel.org
Subject: [LARTC] tc is broken for "protocol arp" filters
Date: Sun, 21 Nov 2004 06:09:55 +0000 [thread overview]
Message-ID: <41A03133.88697C06@iswest.com> (raw)
I have tested Devik's tc (103592 bytes) and 2.6.8 which I compiled.
Both return "RTNETLINK answers: Invalid argument".
Stephen Hemminger should be sent a patch that fixes this.
An example that returns the above error message is:
tc filter add dev eth1 parent 1: protocol arp prio 5 u32 \
match u16 0x0806 0xffff at -2 flowid 1:50
I'm using this because it works:
# Example that matches ARP (a big "thank you" to Martin Brown for
this!):
# dst MAC is 6 bytes at -14
# src MAC is 6 bytes at -8
# the ARP protocol is 2 bytes at -2
# the "0806" comes from linux/include/linux/if_ether.h
tc filter add dev eth1 parent 1: protocol ip prio 5 u32 \
match u16 0x0806 0xffff at -2 flowid 1:50
gypsy
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
reply other threads:[~2004-11-21 6:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=41A03133.88697C06@iswest.com \
--to=gypsy@iswest.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.