ring_tx: handle EINTR from sendto
[netsniff-ng.git] / dissector_netlink.h
blob240ff1c5641a6d6b69ba7c85d4fcb6eb223c0d7a
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * Copyright 2014 Tobias Klauser.
4 * Subject to the GPL, version 2.
5 */
7 #ifndef DISSECTOR_NETLINK_H
8 #define DISSECTOR_NETLINK_H
10 #include "config.h"
11 #include "protos.h"
13 extern void dissector_init_netlink(int fnttype);
14 extern void dissector_cleanup_netlink(void);
16 static inline struct protocol *dissector_get_netlink_entry_point(void)
18 #ifdef HAVE_LIBNL
19 return &nlmsg_ops;
20 #else
21 return &none_ops;
22 #endif
25 static inline struct protocol *dissector_get_netlink_exit_point(void)
27 return &none_ops;
30 #endif /* DISSECTOR_NETLINK_H */