[LARTC] icmp
Catalin(ux aka Dino) BOIE
util@deuroconsult.ro
Tue, 16 Nov 2004 13:53:54 +0200 (EET)
On Tue, 9 Nov 2004, Key wrote:
> It's possible to shape icmp protocol using htb.init script ?
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> 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/