From: Jacob Teplitsky <jacobt@bivio.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] [tcng] specifing interface in IF ?!
Date: Sun, 02 Mar 2003 00:41:30 +0000 [thread overview]
Message-ID: <marc-lartc-104656575924951@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104644031006296@msgid-missing>
> Subject: [LARTC] [tcng] specifing interface in IF ?!
>
> does anyone know how can I make class-path based on interface from which the packet comes ?!
We implemented something like this:
dev "s0e0" {
ingress {
class (<>,set_color(GREEN))
if tcp_dport = PORT_HTTP;
class (<>,set_color(YELLOW))
if tcp_dport = PORT_SMTP;
class (<>,set_color(RED))
if 1;
}
}
dev "s1e0" {
egress {
class (<>,set_dscp(0x12))
if color = GREEN;
class (<>,set_dscp(0x23))
if color = YELLOW;
class (<>,set_dscp(0x34))
if color = RED;
drop if 1; /* not reached */
fifo;
}
}
but you can't do this with tcng-tc.
- Jacob
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2003-03-02 0:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-28 13:51 [LARTC] [tcng] specifing interface in IF ?! raptor
2003-03-02 0:41 ` Jacob Teplitsky [this message]
2003-03-07 7:06 ` raptor
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-104656575924951@msgid-missing \
--to=jacobt@bivio.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.