diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2015-08-01 11:04:08 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-08-03 09:55:29 +0200 |
commit | c2e0fe0f4fd8e539ffdda6ec5656a969a1582757 (patch) | |
tree | 33ac9de12e3ef776d58acea6ec6b8b3d963bd95d /flowtop.c | |
parent | 772d5dee4d36894383ef2466f81a653d34fe3d40 (diff) |
flowtop: Rename collector_cb -> flow_event_cb
Rename collector_cb to reflect behaviour such as catching flow events.
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'flowtop.c')
-rw-r--r-- | flowtop.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |