Skip to contentSkip to conversation

Matching on any bit set after masking

DISCUSSION Robert Scott 1 participant 1 message Aug 30, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

When using the -m mark flag, is there any way to match on any bit being set after masking the the mark. In one rule, I set one of the first four bits dependent on the source address, and in another I only want to match packets that have any of these first four bits set.

I could do this with multiple rules, but I was hoping there was a way to do it with just one.

thanks,

c--
--rb
<mailto:alex%40samad.com.au>