Re: icmp

Linux Advanced Routing and Traffic Control

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

 



On Tue, 9 Nov 2004, Key wrote:

It's possible to shape icmp protocol using htb.init script ?
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Yes, it's possible.

# match icmp echo request
tc filter add dev $dev protocol ip parent x: u32 \
	match ip icmp_type 0x08 0xff flowid 1:2

# match icmp echo reply
tc filter add dev $dev protocol ip parent x: u32 \
	match ip icmp_type 0x00 0xff flowid 1:2

See /usr/include/linux/icmp.h for more types.

---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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