astraceroute: use switch instead of lookup table for short proto id
[netsniff-ng.git] / mac80211.h
blobbae28b1a982af63dd5f512567a5a2efd1f4cfc93
1 #ifndef MAC80211_H
2 #define MAC80211_H
4 #include "config.h"
5 #include "die.h"
7 #ifdef HAVE_LIBNL
8 extern void enter_rfmon_mac80211(const char *device, char **mondev);
9 extern void leave_rfmon_mac80211(const char *mondev);
10 #else
11 static inline void enter_rfmon_mac80211(const char *device, char **mondev)
13 panic("No built-in libnl support!\n");
16 static inline void leave_rfmon_mac80211(const char *mondev)
19 #endif /* HAVE_LIBNL */
21 #endif /* MAC80211_H */