On 01/14/2013 04:24 PM, Max Lapshin wrote: > You want something like iptables -L which atomically tells you current > value and reset it. You'll need -Z flag for iptables to actually reset counters. Here's the description of compare and set (or swap): http://en.wikipedia.org/wiki/Compare_and_swap Regards, Anton Lebedevich.