From ab6d7ab0afc005ee2c1936c9190007235c22d839 Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" Date: Thu, 12 Jan 2006 12:18:21 +0000 Subject: introduce NFCT input plugin hash table for start/end timestamps. Based on an original patch by Christian Hentschel, amended like: 1) the hash table has to be per-instance, since [at least in the future] we can have nfnetlink messages routed from other machines over the network, thus every NFCT instance has to have it's own hash table. 2) Whether or not to use a preallocated table is now a configuration value, as is the number of buckets and max_entries 3) configure_nfct was not used in the struct ulogd_plugin.configure 4) don't put the hashtable buckets in BSS, but rather allocate them dynamically 5) allocate all ct_timestamps (in the preallocated case) at once, rather than malloc()ing each on its own. 6) use official IPFIX fields for flow start and flow end instead of private numbers 7) use llist instead of list (linuxlist.h adds an additional 'l') 8) add lots of TODO items 9) add IPFIX_NF_conntrack_id to header file --- include/ulogd/ipfix_protocol.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ulogd/ipfix_protocol.h b/include/ulogd/ipfix_protocol.h index 0974ebf..5cb6086 100644 --- a/include/ulogd/ipfix_protocol.h +++ b/include/ulogd/ipfix_protocol.h @@ -221,6 +221,7 @@ enum { IPFIX_NF_prefix = 3, /* string */ IPFIX_NF_mark = 4, /* u_int32_t */ IPFIX_NF_hook = 5, /* u_int8_t */ + IPFIX_NF_conntrack_id = 6, /* u_int32_t */ }; #endif -- cgit v1.2.3