summaryrefslogtreecommitdiff
path: root/dissector_netlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'dissector_netlink.h')
-rw-r--r--dissector_netlink.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dissector_netlink.h b/dissector_netlink.h
index 9d30e56..240ff1c 100644
--- a/dissector_netlink.h
+++ b/dissector_netlink.h
@@ -7,6 +7,7 @@
#ifndef DISSECTOR_NETLINK_H
#define DISSECTOR_NETLINK_H
+#include "config.h"
#include "protos.h"
extern void dissector_init_netlink(int fnttype);
@@ -14,7 +15,11 @@ extern void dissector_cleanup_netlink(void);
static inline struct protocol *dissector_get_netlink_entry_point(void)
{
+#ifdef HAVE_LIBNL
return &nlmsg_ops;
+#else
+ return &none_ops;
+#endif
}
static inline struct protocol *dissector_get_netlink_exit_point(void)