Skip to contentSkip to conversation

tc filtering with fw mark

LARTC Craig J Howard 2 participants 2 messages May 8, 2003

lore
Share & tools
lore
#0 lore raw

Does anyone know if it is possible for a tc filter to match using a mask on the fw mark?
For example a packet may traverse numerous chains, and some chains will mark the first 16 bits, and others will mark the last 16 (by or-ing)

After this, i want tc to be able to filter the packet based only the last 16 bits of the fw mark.
ie if the fw mark is 111111111111111 0000000000001111 then the filter will match, as well as if the fw mark was (say) 0000000000000000 0000000000001111

Thanks
Craig
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 9 lines · Craig J Howard

Does anyone know if it is possible for a tc filter to match using a mask on the fw mark? For example a packet may traverse numerous chains, and some chains will mark the first 16 bits, and others will mark the last 16 (by or-ing)

After this, i want tc to be able to filter the packet based only the last 16 bits of the fw mark. ie if the fw mark is 111111111111111 0000000000001111 then the filter will match, as well as if the fw mark was (say) 0000000000000000 0000000000001111

I never heard of such feature.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/