All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mihai RUSU <dizzy@roedu.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] First post, first problem
Date: Wed, 06 Mar 2002 12:43:52 +0000	[thread overview]
Message-ID: <marc-lartc-101541832522671@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101541701219551@msgid-missing>

On Wed, 6 Mar 2002, Mihai RUSU wrote:

> Hi
>
> I've searched the archives for this and doesnt seem to be any message with
> this problem. Im trying to optimize a high load CBQ server using u32
> hashes as in
> http://lartc.org/HOWTO//cvs/2.4routing/output/2.4routing-12.html#ss12.4
>
> Although Ive double checked the kernel options, and also other u32 filters
> work very well, when I try this line I get an error:
>
> /sbin/tc filter add dev eth0 parent 1:0 prio 5 handle 2: u32 divisor 256
> RTNETLINK answers: Invalid argument
>

Well I found out the "problem" . You cannot have u32 filter witout telling
the protocol too. The correct line should be:
/sbin/tc filter add dev eth0 parent 1:0 prio 5 handle 2: protocol ip u32
divisor 256

There is also another error in the HOWTO (I think):

"Ok, some numbers need explaining. The default hash table is called 800::
and all filtering starts there. Then we select the source address, which
lives as position 12, 13, 14 and 15 in the IP header, and indicate that we
are only interested in the last part. This we send to hash table 1:, which
we created earlier."

This is wrong. The hash table in in fact 2: and not 1: .

----------------------------
Mihai RUSU

Disclaimer: Any views or opinions presented within this e-mail are solely
those of the author and do not necessarily represent those of any company,
unless otherwise specifically stated.

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

  reply	other threads:[~2002-03-06 12:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-06 12:21 [LARTC] First post, first problem Mihai RUSU
2002-03-06 12:43 ` Mihai RUSU [this message]
2002-03-06 13:02 ` bert hubert
2002-03-06 13:20 ` Mihai RUSU

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-101541832522671@msgid-missing \
    --to=dizzy@roedu.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.