From 20cf5af5efee4685271b083de23b6e66ba48d3f1 Mon Sep 17 00:00:00 2001 From: Yunchih Chen Date: Sun, 18 Mar 2018 12:36:06 +0800 Subject: Add header checksum --- lib/collect.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/collect.c') diff --git a/lib/collect.c b/lib/collect.c index b7cf430..a8a46bd 100644 --- a/lib/collect.c +++ b/lib/collect.c @@ -160,6 +160,9 @@ void *nfl_collect_worker(void *targs) { nflog_unbind_group(nf->nfl_group_fd); nflog_close(nf->nfl_fd); + // write checksum + nf->header->cksum = nfl_header_cksum(nf->header); + // spawn commit thread nfl_commit(nf); pthread_exit(NULL); -- cgit v1.2.3