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

Linux Advanced Routing and Traffic Control

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

 



does anyone know how can I make class-path based on interface from which the packet comes ?!


dev eth0 {
	class(<$c1>) if interface-eth0;

	egress {
		htb() {
			$c1 = class(rate 1mbps) {
				class(rate 100kbps, ceil 150kbps) if ip_dst == x.x.x.x;
				class(rate 50kbps, ceil 100kbps) if ip_dst == y.y.y.y;
			}
		}
	}
}


any idea ?!


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