summaryrefslogtreecommitdiff
path: root/dissector_netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'dissector_netlink.c')
-rw-r--r--dissector_netlink.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/dissector_netlink.c b/dissector_netlink.c
new file mode 100644
index 0000000..387f198
--- /dev/null
+++ b/dissector_netlink.c
@@ -0,0 +1,33 @@
+/*
+ * netsniff-ng - the packet sniffing beast
+ * Copyright 2014 Tobias Klauser.
+ * Subject to the GPL, version 2.
+ */
+
+#include "dissector.h"
+#include "dissector_netlink.h"
+
+#ifdef HAVE_DISSECTOR_PROTOS
+static inline void dissector_init_entry(int type)
+{
+ dissector_set_print_type(&nlmsg_ops, type);
+}
+
+static inline void dissector_init_exit(int type)
+{
+ dissector_set_print_type(&none_ops, type);
+}
+#else
+static inline void dissector_init_entry(int type __maybe_unused) {}
+static inline void dissector_init_exit(int type __maybe_unused) {}
+#endif
+
+void dissector_init_netlink(int fnttype)
+{
+ dissector_init_entry(fnttype);
+ dissector_init_exit(fnttype);
+}
+
+void dissector_cleanup_netlink(void)
+{
+}