From bb60eb2e6af696443426f45360c697d03167507d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 15 Nov 2015 15:47:43 +0100 Subject: lookup: Make lookup type and function names more generic It's not only ports we look up, make the names a bit more generic. Preparatory patch before moving OUI lookup to the lookup module. Signed-off-by: Tobias Klauser --- flowtop.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'flowtop.c') diff --git a/flowtop.c b/flowtop.c index 41e80b7..cf0e478 100644 --- a/flowtop.c +++ b/flowtop.c @@ -1212,8 +1212,8 @@ static void presenter(void) int skip_lines = 0; WINDOW *screen; - lookup_init_ports(PORTS_TCP); - lookup_init_ports(PORTS_UDP); + lookup_init(LT_PORTS_TCP); + lookup_init(LT_PORTS_UDP); screen = screen_init(false); start_color(); @@ -1292,8 +1292,8 @@ static void presenter(void) rcu_unregister_thread(); screen_end(); - lookup_cleanup_ports(PORTS_UDP); - lookup_cleanup_ports(PORTS_TCP); + lookup_cleanup(LT_PORTS_UDP); + lookup_cleanup(LT_PORTS_TCP); } static int flow_event_cb(enum nf_conntrack_msg_type type, -- cgit v1.2.3-54-g00ecf