aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasashi Honma <honma@ictec.co.jp>2009-09-26 16:29:03 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-22 18:57:51 (GMT)
commit81f555f43930dda26c89b0a3f9f2d5c432357eb6 (patch)
tree6c68e694995d07c5a9240d862eedd737532755d8
parent8795e80dcd6896458f38db55d620d65bcb33ca7b (diff)
downloadhostap-06-81f555f43930dda26c89b0a3f9f2d5c432357eb6.zip
hostap-06-81f555f43930dda26c89b0a3f9f2d5c432357eb6.tar.gz
hostap-06-81f555f43930dda26c89b0a3f9f2d5c432357eb6.tar.bz2
Mac OS X: Fix wired IEEE 802.1X
(cherry picked from commit 40e107c1299deda181533d03eb8557580bc19ba0)
-rw-r--r--src/drivers/driver_wired.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/driver_wired.c b/src/drivers/driver_wired.c
index 186f349..c739dc3 100644
--- a/src/drivers/driver_wired.c
+++ b/src/drivers/driver_wired.c
@@ -131,7 +131,7 @@ static int wpa_driver_wired_multi(const char *ifname, const u8 *addr, int add)
os_memcpy(LLADDR(dlp), addr, ETH_ALEN);
}
#endif /* __FreeBSD__ */
-#if defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
{
struct sockaddr *sap;
sap = (struct sockaddr *) &ifr.ifr_addr;
@@ -139,7 +139,7 @@ static int wpa_driver_wired_multi(const char *ifname, const u8 *addr, int add)
sap->sa_family = AF_UNSPEC;
os_memcpy(sap->sa_data, addr, ETH_ALEN);
}
-#endif /* defined(__NetBSD__) || defined(__OpenBSD__) */
+#endif /* defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) */
if (ioctl(s, add ? SIOCADDMULTI : SIOCDELMULTI, (caddr_t) &ifr) < 0) {
perror("ioctl[SIOC{ADD/DEL}MULTI]");