u32 question

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

 



Don Cohen writes:
 > 
 > This example doesn't seem to work for me.
 > Does it work for anyone else out there?  
 > 
 >  $ iptables -A OUTPUT -m u32 --u32 "0>>22&0x3C@12>>26&0x3C@-3&0xFF=0:255"
 >   -j LOG --log-prefix "TCP with payload *** "
 > I've tried some examples without the @ and they seem to be working but
 > I don't get anything in the log when I do this:

A little more data - this seems to work when I replace the -3 above
with 0.  It now occurs to me that the problem might be that I'm using
a 64 bit machine and the -3 translates to #xfffffffd rather than
#xfffffffffffffffd.

(Mike, are you using a 64 bit machine?)
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux