summaryrefslogtreecommitdiff
path: root/flowtop.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-15 15:47:43 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-15 15:47:43 +0100
commitbb60eb2e6af696443426f45360c697d03167507d (patch)
treec9d8099b079702409909102fefd1e8cab7b16dff /flowtop.c
parent16afc315b88661fd9cb15f97d886cac221287564 (diff)
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 <tklauser@distanz.ch>
Diffstat (limited to 'flowtop.c')
-rw-r--r--flowtop.c8
1 files changed, 4 insertions, 4 deletions
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,