summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/netlink.h21
-rw-r--r--include/traffic_stats.h10
2 files changed, 31 insertions, 0 deletions
diff --git a/include/netlink.h b/include/netlink.h
new file mode 100644
index 0000000..543eeda
--- /dev/null
+++ b/include/netlink.h
@@ -0,0 +1,21 @@
+#ifndef _NETLINK_H_
+#define _NETLINK_H_
+
+struct nf_conntrack;
+struct nfct_handle;
+
+int ignore_conntrack(struct nf_conntrack *ct);
+
+int nl_init_event_handler(void);
+
+int nl_init_dump_handler(void);
+
+void nl_resize_socket_buffer(struct nfct_handle *h);
+
+int nl_dump_conntrack_table(void);
+
+int nl_create_conntrack(struct nf_conntrack *ct);
+
+int nl_destroy_conntrack(struct nf_conntrack *ct);
+
+#endif
diff --git a/include/traffic_stats.h b/include/traffic_stats.h
new file mode 100644
index 0000000..71fd268
--- /dev/null
+++ b/include/traffic_stats.h
@@ -0,0 +1,10 @@
+#ifndef _TRAFFIC_STATS_H_
+#define _TRAFFIC_STATS_H_
+
+struct nf_conntrack;
+
+void update_traffic_stats(struct nf_conntrack *ct);
+
+void dump_traffic_stats(int fd);
+
+#endif