From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] u32: how to say "all except z.x.y"?
Date: Mon, 20 Jan 2003 17:47:42 +0000 [thread overview]
Message-ID: <marc-lartc-104308491911619@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104307909602471@msgid-missing>
On Monday 20 January 2003 16:56, ray-nger wrote:
> Hello lartc,
> Q1:
>
> If I want select subhet, I wrote
> ...u32 match ip dst a.d.r.es/net police ...
> How I can say "all except z.x.y" ?
> Both src/dest addr/port - I foundn't this info in HOWTO :(((
Use 2 filters :
1. all z.x.y to a class
2. all to an other class
so the second filter matches all except x.y.z
> Q2:
> Why I can't (or not allowed) to create more then one class into
> !ingress! queue? I know, it's incoming trafic? but why?
> it's look simply: (yes, i may be wrong:)
> If first incomng packet owerlimit own filtered class - then drop, else
> pass...
>
> Why it's hardly then outgoing (drop only!!)?
> or, if it's possible - give a sample, please.
It's not possible. The ingress qdisc is not a real qdisc. All egress qdiscs
like htb/cbq/sfq are changing the queue of packets that leaves a nic. But
for incoming there is no queue that you can change.
So you can add a ingress qdisc and you can use filters+policers to manage
incoming traffic, but it will not so powerfull as you can with outgoing
packets. You can't delay a packet with the ingress qdisc.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.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-01-20 17:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-20 15:56 [LARTC] u32: how to say "all except z.x.y"? ray-nger
2003-01-20 17:47 ` 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-104308491911619@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox