summaryrefslogtreecommitdiffstats
path: root/include/ulogd/ulogd.h
diff options
context:
space:
mode:
authorCorubba Smith <corubba@gmx.de>2025-03-25 01:26:16 +0100
committerFlorian Westphal <fw@strlen.de>2025-03-25 20:04:06 +0100
commit3461d6da787a349c868d1dca896cc2c1207a6cd8 (patch)
tree4136e0d037a6417eb13419d364b995d78d64942f /include/ulogd/ulogd.h
parent64d7d2be000e2146a2b141f3881872d1a1eae4d6 (diff)
nfct: add flow end timestamp on hashtable purge
In polling mode during normal operation, as well as in event mode with hashtable when an overrun occurs, the hashtable is fully re-synced against conntrack. When removing flows from the hashtable that are no longer in conntrack, there is no way to get the actual end timestamp of the flow from conntrack because it is already gone. Since the last conntrack data in the hashtable for these flows will never contain an end timestamp in this case, set_timestamp_from_ct() will always fall back to using the current time, aka when the plugin determines that the flow disappeared from conntrack. That is only an approximation, but should be good enough; and certainly more accurate than no end timestamp at all. Signed-off-by: Corubba Smith <corubba@gmx.de> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include/ulogd/ulogd.h')
0 files changed, 0 insertions, 0 deletions