[LARTC] u32 nexthdr problem

Linux Advanced Routing and Traffic Control

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

 



I'm having trouble with nexthdr.

 tc filter add dev eth0 protocol ip parent 10:0 prio 1 u32 \
 match ip protocol 0x6 0xff match u8 0x02 0x12 at nexthdr+13 flowid 10:3
fails to match my test packets whereas
 tc filter add dev eth0 protocol ip parent 10:0 prio 1 u32 \
 match ip protocol 0x6 0xff match u8 0x02 0x12 at 33 flowid 10:3
does match them.
Of course, the second one is really wrong since it means something
totally different if your packet contains any IP options (which my
test packets do not, of course).

Does anyone either see what I'm doing wrong?
Anyone else experience the same problems?
Anyone know how to fix them?



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