diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-10-23 17:35:57 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-02-17 00:57:54 +0100 |
commit | 2217eb4c53a54eabbc09e043209181c483e2eace (patch) | |
tree | b8f0b8da65e53b562993f6a373fb71826ec0cbf9 /utils/conntrack_events.c | |
parent | c2ddcf3225edcc13699131820f90b063161ff2ca (diff) |
conntrack: add timestamp support
This patch adds the connection tracking extension that allows
conntrack timestamping.
This requires a Linux kernel >= 2.6.38.
We have now 65 attributes, we need 96 bits to store what attributes
are set in the objects.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'utils/conntrack_events.c')
-rw-r--r-- | utils/conntrack_events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/conntrack_events.c b/utils/conntrack_events.c index f5e72c7..7675663 100644 --- a/utils/conntrack_events.c +++ b/utils/conntrack_events.c @@ -12,7 +12,7 @@ static int event_cb(enum nf_conntrack_msg_type type, static int n = 0; char buf[1024]; - nfct_snprintf(buf, sizeof(buf), ct, type, NFCT_O_XML, NFCT_OF_TIME); + nfct_snprintf(buf, sizeof(buf), ct, type, NFCT_O_XML, NFCT_OF_TIME | NFCT_OF_TIMESTAMP); printf("%s\n", buf); if (++n == 10) |