From: Vadim Kochan <[email protected]>

Rename collector_cb to reflect such behaviour like catching
flow events.

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 fda1339..5b1b35c 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -1016,7 +1016,7 @@ static void presenter(void)
        lookup_cleanup_ports(PORTS_TCP);
 }
 
-static int collector_cb(enum nf_conntrack_msg_type type,
+static int flow_event_cb(enum nf_conntrack_msg_type type,
                        struct nf_conntrack *ct, void *data __maybe_unused)
 {
        if (sigint)
@@ -1179,7 +1179,7 @@ static void *collector(void *null __maybe_unused)
 
        collector_create_filter(ct_event);
 
-       nfct_callback_register(ct_event, NFCT_T_ALL, collector_cb, NULL);
+       nfct_callback_register(ct_event, NFCT_T_ALL, flow_event_cb, NULL);
        flow_list_init(&flow_list);
 
        ct_update = nfct_open(CONNTRACK, NF_NETLINK_CONNTRACK_UPDATE);
-- 
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.

Reply via email to