Skip to contentSkip to conversation

Filtering ACK bits smaller than 64 bytes

LARTC Roché Compaan 1 participant 2 messages Mar 20, 2003 – Mar 21, 2003

lore
Share & tools
lore
#0 lore raw

Hi there

I want to add a filter for all ACK bits smaller than 64 bytes for a specific ip destination, but I get RTNETLINK answers: invalid argument. Any idea what is wrong with the filter below:

tc filter add dev eth1 parent 1:0 prio 1 u32 \
        match ip dst 196.44.35.53 \
        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:20

Thanks,

Signature · 5 lines
Roché Compaan
Upfront Systems                 http://www.upfrontsystems.co.za
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw

Urghm, found my problem.

tc filter add dev eth1 parent 1:0 prio 1 u32 \

should have been:

tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 \

                                  ^^^^^^^^^^^
Quoted 13 lines

Hi there

I want to add a filter for all ACK bits smaller than 64 bytes for a specific ip destination, but I get RTNETLINK answers: invalid argument. Any idea what is wrong with the filter below:

tc filter add dev eth1 parent 1:0 prio 1 u32 \
        match ip dst 196.44.35.53 \
        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:20
Signature · 5 lines
Roché Compaan
Upfront Systems                 http://www.upfrontsystems.co.za
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/