configure: Improve check for libnl/libnl-genl
[netsniff-ng.git] / dissector_80211.h
blob53059e541acdfcfb26e5824330219f23334002d8
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * Copyright 2009, 2010 Daniel Borkmann.
4 * Subject to the GPL, version 2.
5 */
7 #ifndef DISSECTOR_80211_H
8 #define DISSECTOR_80211_H
10 #include "hash.h"
11 #include "proto.h"
12 #include "protos.h"
13 #include "tprintf.h"
14 #include "oui.h"
16 extern struct hash_table ieee80211_lay2;
18 extern void dissector_init_ieee80211(int fnttype);
19 extern void dissector_cleanup_ieee80211(void);
21 #ifdef __WITH_PROTOS
22 static inline struct protocol *dissector_get_ieee80211_entry_point(void)
24 return &ieee80211_ops;
27 static inline struct protocol *dissector_get_ieee80211_exit_point(void)
29 return &none_ops;
31 #else
32 static inline struct protocol *dissector_get_ieee80211_entry_point(void)
34 return NULL;
37 static inline struct protocol *dissector_get_ieee80211_exit_point(void)
39 return NULL;
41 #endif /* __WITH_PROTOS */
42 #endif /* DISSECTOR_80211_H */