From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Teplitsky Date: Sun, 02 Mar 2003 00:41:30 +0000 Subject: Re: [LARTC] [tcng] specifing interface in IF ?! Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > 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/