summaryrefslogtreecommitdiff
path: root/flowtop.c
diff options
context:
space:
mode:
Diffstat (limited to 'flowtop.c')
-rw-r--r--flowtop.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/flowtop.c b/flowtop.c
index ce43d93..506883b 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -31,10 +31,10 @@
#include "config.h"
#include "str.h"
#include "sig.h"
+#include "lookup.h"
#include "geoip.h"
#include "built_in.h"
#include "locking.h"
-#include "dissector_eth.h"
#include "pkt_buff.h"
#include "screen.h"
@@ -981,7 +981,8 @@ static void presenter(void)
int skip_lines = 0;
WINDOW *screen;
- dissector_init_ethernet(0);
+ lookup_init_ports(PORTS_TCP);
+ lookup_init_ports(PORTS_UDP);
screen = screen_init(false);
rcu_register_thread();
@@ -1015,7 +1016,8 @@ static void presenter(void)
rcu_unregister_thread();
screen_end();
- dissector_cleanup_ethernet();
+ lookup_cleanup_ports(PORTS_UDP);
+ lookup_cleanup_ports(PORTS_TCP);
}
static int collector_cb(enum nf_conntrack_msg_type type,