a992ca2a04
This patch adds flow-based timestamping for conntracks. This conntrack extension is disabled by default. Basically, we use two 64-bits variables to store the creation timestamp once the conntrack has been confirmed and the other to store the deletion time. This extension is disabled by default, to enable it, you have to: echo 1 > /proc/sys/net/netfilter/nf_conntrack_timestamp This patch allows to save memory for user-space flow-based loogers such as ulogd2. In short, ulogd2 does not need to keep a hashtable with the conntrack in user-space to know when they were created and destroyed, instead we use the kernel timestamp. If we want to have a sane IPFIX implementation in user-space, this nanosecs resolution timestamps are also useful. Other custom user-space applications can benefit from this via libnetfilter_conntrack. This patch modifies the /proc output to display the delta time in seconds since the flow start. You can also obtain the flow-start date by means of the conntrack-tools. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Patrick McHardy <kaber@trash.net> |
||
---|---|---|
.. | ||
Kbuild | ||
nf_conntrack_amanda.h | ||
nf_conntrack_common.h | ||
nf_conntrack_dccp.h | ||
nf_conntrack_ftp.h | ||
nf_conntrack_h323.h | ||
nf_conntrack_h323_asn1.h | ||
nf_conntrack_h323_types.h | ||
nf_conntrack_irc.h | ||
nf_conntrack_pptp.h | ||
nf_conntrack_proto_gre.h | ||
nf_conntrack_sane.h | ||
nf_conntrack_sctp.h | ||
nf_conntrack_sip.h | ||
nf_conntrack_snmp.h | ||
nf_conntrack_tcp.h | ||
nf_conntrack_tftp.h | ||
nf_conntrack_tuple_common.h | ||
nfnetlink.h | ||
nfnetlink_compat.h | ||
nfnetlink_conntrack.h | ||
nfnetlink_log.h | ||
nfnetlink_queue.h | ||
x_tables.h | ||
xt_AUDIT.h | ||
xt_CHECKSUM.h | ||
xt_CLASSIFY.h | ||
xt_cluster.h | ||
xt_comment.h | ||
xt_connbytes.h | ||
xt_connlimit.h | ||
xt_connmark.h | ||
xt_CONNMARK.h | ||
xt_CONNSECMARK.h | ||
xt_conntrack.h | ||
xt_cpu.h | ||
xt_CT.h | ||
xt_dccp.h | ||
xt_dscp.h | ||
xt_DSCP.h | ||
xt_esp.h | ||
xt_hashlimit.h | ||
xt_helper.h | ||
xt_IDLETIMER.h | ||
xt_iprange.h | ||
xt_ipvs.h | ||
xt_LED.h | ||
xt_length.h | ||
xt_limit.h | ||
xt_mac.h | ||
xt_MARK.h | ||
xt_mark.h | ||
xt_multiport.h | ||
xt_NFLOG.h | ||
xt_NFQUEUE.h | ||
xt_osf.h | ||
xt_owner.h | ||
xt_physdev.h | ||
xt_pkttype.h | ||
xt_policy.h | ||
xt_quota.h | ||
xt_RATEEST.h | ||
xt_rateest.h | ||
xt_realm.h | ||
xt_recent.h | ||
xt_sctp.h | ||
xt_SECMARK.h | ||
xt_socket.h | ||
xt_state.h | ||
xt_statistic.h | ||
xt_string.h | ||
xt_TCPMSS.h | ||
xt_tcpmss.h | ||
xt_TCPOPTSTRIP.h | ||
xt_tcpudp.h | ||
xt_TEE.h | ||
xt_time.h | ||
xt_TPROXY.h | ||
xt_u32.h |