Reclassifing with the filters

Linux Advanced Routing and Traffic Control

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

 



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

_______________________________________________
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