Re: tc filter for small udp packets < 64 bytes

Linux Advanced Routing and Traffic Control

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

 



Salatiel Filho wrote:
Hi guys, according  to http://lartc.org/howto/lartc.adv-filter.html i
can use the following filter  to match ACKs on packets smaller than 64
bytes:
         tc filter add dev $interface parent 1:0 protocol ip prio 1 u32 \
             match ip protocol 6 0xff \
             match u8 0x05 0x0f at 0 \
             match u16 0x0000 0xffc0 at 2 \
             match u8 0x10 0xff at 33 \
             flowid 1:10

but how can i filter any udp packet smaller than 64 bytes?

Untested, but I guess

tc filter add dev $interface parent 1:0 protocol ip prio 1 u32 \
             match ip protocol 17 0xff \
             match u16 0x0000 0xffc0 at 2 \
             flowid 1:10

should do it.


--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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