Re: Fwd: [LARTC] Hashing filters

Linux Advanced Routing and Traffic Control

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

 



> tc filter add dev $IF parent 30:0 prio 5 protocol ip u32
> tc filter add dev $IF parent 30:0 prio 5 handle 2: protocol ip u32 divisor 256
> tc filter add dev $IF parent 30:0 prio 5 handle 3: u32 ht 2:0: divisor 256
> tc filter add dev $IF parent 30:0 prio 5 u32 ht 3:6: match ip dst 192.168.0.6 flowid 30:6
>
> tc filter add dev $IF protocol ip parent 30:0 prio 5 u32 ht 800:: \
>     match ip dst 192.168.0.0/24 hashkey mask 0x0000ff00 at 12 link 2:
> tc filter add dev $IF protocol ip parent 30:0 prio 5 u32 ht 800:: \
>     match ip dst 192.168.0.0/24 hashkey mask 0x000000ff at 12 link 3:
>
> Doesn't work. Traffic never goes to class 30:6 but stays unclassified.
> Any suggestions?

Because traffic goes to 2:X filters.
Put
>  tc filter add dev $IF protocol ip parent 30:0 prio 5 u32 ht 800:: \
>     match ip dst 192.168.0.0/24 hashkey mask 0x000000ff at 12 link 3:
before the 2: test.


> Thank you.
>
> Michael
> _______________________________________________
> LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

---
Catalin(ux) BOIE
catab@xxxxxxxxxxxxxxx


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux