[LARTC] Reclassifing with the filters
Hideaki Nemoto
nemo-h@po.ntts.co.jp
Thu, 08 Jul 2004 17:34:46 +0900
Hi all,
Is the reclassify function useful for really reclassifing ?
I couldnt find any samples or documents about this function.
I want to pick a packet that's over a specific rate, and
reclassify that to arbitrary class that I specify.
I've tested with the ingress filter, but it didnt work.
(the script below in the ingress, and a simple qdisc, class
structure at the egress)
=====================From Here=========================
# tc qdisc add dev eth1 handle ffff: ingress
# tc filter add dev eth1 parent ffff: protocol ip prio 1 \
u32 match ip src 192.168.48.10 \
match ip dst 192.168.0.1 \
match ip dport 5007 0xff \
police rate 64kbit buffer 1522 reclassify \
flowid :2
# tc filter add dev eth1 parent ffff: protocol ip prio 2 \
u32 match ip src 192.168.48.10 \
match ip dst 192.168.0.1 \
match ip dport 5007 0xff \
flowid :1
=======================To Here=========================
I also tried one in the IMQ, with DSMARK qdisc as a parent,
where it didnt work.
Would anyone give me a clue ?
Thanks in advance,
Hideaki