mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
Allow driver_bsd.c to be built for NetBSD
This commit is contained in:
parent
a3bfd14de1
commit
898d6921b4
@ -21,7 +21,13 @@
|
||||
#include "ieee802_11_defs.h"
|
||||
|
||||
#include <net/if.h>
|
||||
|
||||
#ifdef __NetBSD__
|
||||
#include <net/if_ether.h>
|
||||
#define COMPAT_FREEBSD_NET80211
|
||||
#else
|
||||
#include <net/ethernet.h>
|
||||
#endif
|
||||
|
||||
#include <net80211/ieee80211.h>
|
||||
#include <net80211/ieee80211_crypto.h>
|
||||
@ -449,7 +455,12 @@ wpa_driver_bsd_scan(void *priv, const u8 *ssid, size_t ssid_len)
|
||||
}
|
||||
|
||||
#include <net/route.h>
|
||||
#if __FreeBSD__
|
||||
#include <net80211/ieee80211_freebsd.h>
|
||||
#endif
|
||||
#if __NetBSD__
|
||||
#include <net80211/ieee80211_netbsd.h>
|
||||
#endif
|
||||
|
||||
static void
|
||||
wpa_driver_bsd_event_receive(int sock, void *ctx, void *sock_ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user