check timer active

Henrik Nordstrom hno at
Sat Dec 4 15:55:54 CET 2004

On Thu, 2 Dec 2004, Richard wrote:

> It looks like that there are two ways to check if a timer for conntrack is
> active or not.
> ct->timeout-> != NULL
> test_bit(IPS_CONFIRMED_BIT, &ct->status)

These two tests for slightly different things

The first checks that there is a timeout.

The second checks that the conntrack entry is active (in the hash table 

The two is at most if not all times equal as all active conntrack entries 
have a timeout of some sort, but maybe it is possible for the timeout to 
be established before the conntrack becomes confirmed or something..


More information about the netfilter-devel mailing list