diff options
author | Scott Tincman <sctincman@gmail.com> | 2012-11-13 20:29:55 -0500 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2012-11-15 12:31:17 +0100 |
commit | 0eeded8bc013857a5e8a2efbc20002a22502897e (patch) | |
tree | 340c1c11296923acbf2cc3b28c3299e8cb7730fb /src/print_wireless_info.c | |
parent | 2f20400d7af06d1a283bf727ce7af27f68f255f5 (diff) |
DragonFlyBSD support added
Diffstat (limited to 'src/print_wireless_info.c')
-rw-r--r-- | src/print_wireless_info.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c index 1eddd96..9ab9c2f 100644 --- a/src/print_wireless_info.c +++ b/src/print_wireless_info.c @@ -25,6 +25,19 @@ #define IW_ESSID_MAX_SIZE IEEE80211_NWID_LEN #endif +#ifdef __DragonFly__ +#include <sys/param.h> +#include <sys/ioctl.h> +#include <sys/socket.h> +#include <ifaddrs.h> +#include <net/if.h> +#include <net/if_media.h> +#include <netproto/802_11/ieee80211.h> +#include <netproto/802_11/ieee80211_ioctl.h> +#include <unistd.h> +#define IW_ESSID_MAX_SIZE IEEE80211_NWID_LEN +#endif + #ifdef __OpenBSD__ #include <sys/ioctl.h> #include <sys/socket.h> @@ -170,7 +183,7 @@ static int get_wireless_info(const char *interface, wireless_info_t *info) { close(skfd); return 1; #endif -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__DragonFly__) int s, len, inwid; uint8_t buf[24 * 1024], *cp; struct ieee80211req na; |