aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasashi Honma <honma@ictec.co.jp>2009-09-28 13:10:02 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-22 18:58:33 (GMT)
commit361da0679659a27d0c63bb8933193c83ada0f4bc (patch)
tree9d8bcdd3c66337039f43f04a125a572625dcd6ca
parent862623d97af0912df21eb1f0b37636ca29636ddb (diff)
downloadhostap-06-361da0679659a27d0c63bb8933193c83ada0f4bc.zip
hostap-06-361da0679659a27d0c63bb8933193c83ada0f4bc.tar.gz
hostap-06-361da0679659a27d0c63bb8933193c83ada0f4bc.tar.bz2
DragonFly BSD: Fix wired IEEE 802.1X
On DragonFly BSD, wired IEEE 802.1X fails with this message: ioctl[SIOC{ADD/DEL}MULTI]: Invalid argument This patch solves this issue. I have tested with these: OS : DragonFly BSD 2.4.0 EAP : EAP-TLS Switch : Cisco Catalyst 2950 (cherry picked from commit f335c69e148db2afcea6c22bcde73efd346d7812)
-rw-r--r--src/drivers/driver_wired.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/driver_wired.c b/src/drivers/driver_wired.c
index c739dc3..098991a 100644
--- a/src/drivers/driver_wired.c
+++ b/src/drivers/driver_wired.c
@@ -18,9 +18,9 @@
#ifdef __linux__
#include <netpacket/packet.h>
#endif /* __linux__ */
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
#include <net/if_dl.h>
-#endif /* __FreeBSD__ */
+#endif /* defined(__FreeBSD__) || defined(__DragonFly__) */
#include "common.h"
#include "driver.h"
@@ -118,7 +118,7 @@ static int wpa_driver_wired_multi(const char *ifname, const u8 *addr, int add)
ifr.ifr_hwaddr.sa_family = AF_UNSPEC;
os_memcpy(ifr.ifr_hwaddr.sa_data, addr, ETH_ALEN);
#endif /* __linux__ */
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
{
struct sockaddr_dl *dlp;
dlp = (struct sockaddr_dl *) &ifr.ifr_addr;
@@ -130,7 +130,7 @@ static int wpa_driver_wired_multi(const char *ifname, const u8 *addr, int add)
dlp->sdl_slen = 0;
os_memcpy(LLADDR(dlp), addr, ETH_ALEN);
}
-#endif /* __FreeBSD__ */
+#endif /* defined(__FreeBSD__) || defined(__DragonFly__) */
#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
{
struct sockaddr *sap;