From: Julian Anastasov <ja@ssi.bg>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] HTB and ARP
Date: Tue, 14 Jan 2003 23:51:56 +0000 [thread overview]
Message-ID: <marc-lartc-104259033732075@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104221019215811@msgid-missing>
Hello,
On 14 Jan 2003, Eric Leblond wrote:
> I did not manage to push arp packet in the wanted queue. I use the
> following syntax :
>
> tc class add dev eth0 parent 1:1 classid 1:4 htb \\
> rate 512.0Kbit ceil 512.0Kbit burst 1.28Kbit prio 0
> tc filter add dev eth0 protocol ip u32 \\
> match u16 0x0806 0xFFFF at -2 flowid 1:4
>
> Do I need special options in the qos code (special modules ...)
No, no more hacks, just use "protocol arp" instead of
"protocol ip". Then you can avoid matching the eth proto code at -2.
The filter's "protocol XXX" uses skb->protocol which is built
from the eth proto code for eth devices (returned from eth_type_trans).
So, "protocol ip" is ETH_P_IP, "protocol arp" is ETH_P_ARP and so on.
See the "llproto_names" array in iproute2 (lib/ll_proto.c) and
ll_proto_a2n() used from tc/tc_filter.c
Regards
--
Julian Anastasov <ja@ssi.bg>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2003-01-14 23:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-10 14:48 [LARTC] HTB and ARP Eric Leblond
2003-01-10 14:58 ` Martin A. Brown
2003-01-14 10:45 ` Eric Leblond
2003-01-14 23:51 ` 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-104259033732075@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