On Tue, 9 Nov 2004, Key wrote:

It's possible to shape icmp protocol using htb.init script ?
_______________________________________________
LARTC mailing list / [EMAIL PROTECTED]
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 / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to