stddef: add more useful CPP constants
[netsniff-ng.git] / dissector_80211.h
blobe50f9d1c891c735eab777a9ef0d927d36589c8f4
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * By Daniel Borkmann <daniel@netsniff-ng.org>
4 * Copyright 2009, 2010 Daniel Borkmann.
5 * Subject to the GPL, version 2.
6 */
8 #ifndef DISSECTOR_80211_H
9 #define DISSECTOR_80211_H
11 #include "hash.h"
12 #include "proto.h"
13 #include "protos.h"
14 #include "tprintf.h"
15 #include "xutils.h"
16 #include "oui.h"
18 extern struct hash_table ieee80211_lay2;
20 extern void dissector_init_ieee80211(int fnttype);
21 extern void dissector_cleanup_ieee80211(void);
23 #ifdef __WITH_PROTOS
24 static inline struct protocol *dissector_get_ieee80211_entry_point(void)
26 return &ieee80211_ops;
29 static inline struct protocol *dissector_get_ieee80211_exit_point(void)
31 return &none_ops;
33 #else
34 static inline struct protocol *dissector_get_ieee80211_entry_point(void)
36 return NULL;
39 static inline struct protocol *dissector_get_ieee80211_exit_point(void)
41 return NULL;
43 #endif /* __WITH_PROTOS */
44 #endif /* DISSECTOR_80211_H */