All of lore.kernel.org
 help / color / mirror / Atom feed
From: Flemming Frandsen <ff@nrvissing.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] tc filter add ... fw returns RTNETLINK answers: Invalid
Date: Tue, 10 Jan 2006 23:19:07 +0000	[thread overview]
Message-ID: <43C440EB.7010508@nrvissing.net> (raw)
In-Reply-To: <43C429E5.3070007@nrvissing.net>

Muthukumar S wrote:

>On 1/10/06, Flemming Frandsen <ff@nrvissing.net> wrote:
>  
>
>>When I run this:
>>tc filter add dev eth0 parent 1: protocol ip prio 1 handle 1 fw
>>
>>I get:
>>RTNETLINK answers: Invalid argument
>>    
>>
>
>You are missing the flowid. For example
>tc filter add dec eth0 parent 1: protocol ip prio 1 handle 1 fw flowid 1:42
>  
>

No, no I'm not, I'm using iptables like this:

...
iptables -t mangle -A from-dsl-eth1 -d 10.48.6.0/24 -j MARK --set-mark 
0x14806
iptables -t mangle -A from-dsl-eth1 -d 10.48.6.0/24 -j RETURN
tc class add dev eth1 parent 1:1 classid 1:4806 htb rate 1200mbit burst 
15k prio 10
tc qdisc add dev eth1 parent 1:4806 sfq perturb 21
...

That means that packets with --set-mark 0x14806 get put into classid 1:4806

The RETURN rule means that I can have a -j LOG at the end of my chain to 
figure out what didn't get matched, I just wish you could say -j 
MARK,RETURN in the same rule.

The funny thing that I realized after sending the original mail is that 
the shaper works, it classifies the traffic correctly, eventhough the tc 
filter command moans about an invalid argument.


It would be very nice to either get a usable error message or have tc 
shut up about the non-error.



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

  parent reply	other threads:[~2006-01-10 23:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-10 21:40 [LARTC] tc filter add ... fw returns RTNETLINK answers: Invalid Flemming Frandsen
2006-01-10 22:21 ` Muthukumar S
2006-01-10 23:19 ` Flemming Frandsen [this message]
2006-01-11  0:51 ` Andy Furniss
2006-01-11  0:52 ` Andy Furniss
2006-01-11 11:55 ` [LARTC] tc filter add ... fw returns RTNETLINK answers: Flemming Frandsen
2006-01-12  0:23 ` Andy Furniss
2006-01-13 21:45 ` Flemming Frandsen
2006-01-13 23:04 ` Jody Shumaker

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=43C440EB.7010508@nrvissing.net \
    --to=ff@nrvissing.net \
    --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.