From c2e0fe0f4fd8e539ffdda6ec5656a969a1582757 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Sat, 1 Aug 2015 11:04:08 +0300 Subject: flowtop: Rename collector_cb -> flow_event_cb Rename collector_cb to reflect behaviour such as catching flow events. Signed-off-by: Vadim Kochan Signed-off-by: Tobias Klauser --- flowtop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flowtop.c b/flowtop.c index fda1339..ac929ec 100644 --- a/flowtop.c +++ b/flowtop.c @@ -1016,8 +1016,8 @@ static void presenter(void) lookup_cleanup_ports(PORTS_TCP); } -static int collector_cb(enum nf_conntrack_msg_type type, - struct nf_conntrack *ct, void *data __maybe_unused) +static int flow_event_cb(enum nf_conntrack_msg_type type, + struct nf_conntrack *ct, void *data __maybe_unused) { if (sigint) return NFCT_CB_STOP; @@ -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); -- cgit v1.2.3-54-g00ecf