From: Vadim Kochan <[email protected]> There might be new fast connection between flush & handling new events which can be not handled, so put flushing connections before loop.
Signed-off-by: Vadim Kochan <[email protected]> --- flowtop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flowtop.c b/flowtop.c index 9d935e1..426bd60 100644 --- a/flowtop.c +++ b/flowtop.c @@ -1134,8 +1134,6 @@ static void *collector(void *null __maybe_unused) struct pollfd poll_fd[1]; int ret; - collector_flush(); - ct_event = nfct_open(CONNTRACK, NF_NETLINK_CONNTRACK_NEW | NF_NETLINK_CONNTRACK_UPDATE | NF_NETLINK_CONNTRACK_DESTROY); @@ -1199,6 +1197,8 @@ static void *collector(void *null __maybe_unused) panic("Cannot set non-blocking socket: fcntl(): %s\n", strerror(errno)); + collector_flush(); + rcu_register_thread(); while (!sigint && ret >= 0) { -- 2.4.2 -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
