Skip to contentSkip to conversation

icmp

LARTC Key 2 participants 3 messages Nov 9, 2004 – Nov 16, 2004

lore
Share & tools
lore
#2 lore raw
In reply to Key
Quoted 4 lines · Key

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/