summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conntrack.h9
-rw-r--r--flowtop.c5
2 files changed, 10 insertions, 4 deletions
diff --git a/conntrack.h b/conntrack.h
new file mode 100644
index 0000000..d37d209
--- /dev/null
+++ b/conntrack.h
@@ -0,0 +1,9 @@
+#ifndef CONNTRACK_H
+#define CONNTRACK_H
+
+#include <libnetfilter_conntrack/libnetfilter_conntrack.h>
+#include <libnetfilter_conntrack/libnetfilter_conntrack_tcp.h>
+#include <libnetfilter_conntrack/libnetfilter_conntrack_dccp.h>
+#include <libnetfilter_conntrack/libnetfilter_conntrack_sctp.h>
+
+#endif /* CONNTRACK_H */
diff --git a/flowtop.c b/flowtop.c
index fa0cd21..ef691aa 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -15,10 +15,6 @@
#include <signal.h>
#include <netdb.h>
#include <ctype.h>
-#include <libnetfilter_conntrack/libnetfilter_conntrack.h>
-#include <libnetfilter_conntrack/libnetfilter_conntrack_tcp.h>
-#include <libnetfilter_conntrack/libnetfilter_conntrack_dccp.h>
-#include <libnetfilter_conntrack/libnetfilter_conntrack_sctp.h>
#include <netinet/in.h>
#include <curses.h>
#include <dirent.h>
@@ -29,6 +25,7 @@
#include "die.h"
#include "xmalloc.h"
+#include "conntrack.h"
#include "ioops.h"
#include "str.h"
#include "sig.h"