Re: [LARTC] [tcng] specifing interface in IF ?!

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux