From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] problem with tc filter
Date: Sun, 23 Nov 2003 10:19:05 +0000 [thread overview]
Message-ID: <marc-lartc-106958429222660@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105215831420329@msgid-missing>
On Sunday 23 November 2003 03:38, raz@zazone.net wrote:
> Hi,
>
> It seems I can't sort this thing out:
>
> the same tc filter rule works ok when using u32 classifier with ip src
> x.x.x.x but it doesn't work when substituting src with dst... the same
> exact rule....
>
> and for patient people here is the proof:
>
> -----------------------------
> tc filter add dev eth1 parent 1: protocol ip prio 3 u32 match ip src
> 80.97.88.16/28 flowid 1:11
>
> tc -s -d class show dev eth1
>
> class htb 1:11 parent 1:1 prio 0 quantum 1000 rate 64Kbit ceil 512Kbit
> burst 1680b/8 mpu 0b cburst 2254b/8 mpu 0b level 0
> Sent 1003576 bytes 5017 pkts (dropped 0, overlimits 0)
> rate 2937bps 21pps
> lended: 5012 borrowed: 5 giants: 0
> tokens: 163300 ctokens: 27588
>
> -------------------------------------
> tc filter add dev eth1 parent 1: protocol ip prio 3 u32 match ip dst
> 80.97.88.16/28 flowid 1:11
>
> tc -s -d class show dev eth1
>
> class htb 1:11 parent 1:1 prio 0 quantum 1000 rate 64Kbit ceil 512Kbit
> burst 1680b/8 mpu 0b cburst 2254b/8 mpu 0b level 0
> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
> lended: 0 borrowed: 0 giants: 0
> tokens: 168099 ctokens: 28187
That's very logic to me. You are doing this on the same interface. That
means that you can not have packets with the same dst and src. So if
80.97.88.16/28 is a network connected to eth1 your packets leaving eth1 will
have dst 80.97.88.16/28. If you want to match the packets comming from
80.97.88.16/28, you have to use src 80.97.88.16/28 but on an other interface
where they leave your box, and that's not eth1.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2003-11-23 10:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-05 18:10 [LARTC] problem with tc filter miller69
2003-05-05 18:39 ` Stef Coene
2003-05-05 19:15 ` miller69
2003-05-05 19:20 ` Stef Coene
2003-05-05 21:04 ` miller69
2003-05-06 18:35 ` Stef Coene
2003-05-07 9:39 ` miller69
2003-05-07 16:58 ` Stef Coene
2003-11-23 2:38 ` raz
2003-11-23 10:19 ` Stef Coene [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-106958429222660@msgid-missing \
--to=stef.coene@docum.org \
--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.