]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Mac OS X: Fix wired IEEE 802.1X
authorMasashi Honma <honma@ictec.co.jp>
Sat, 26 Sep 2009 16:29:03 +0000 (19:29 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 26 Sep 2009 16:29:03 +0000 (19:29 +0300)
src/drivers/driver_wired.c

index 2fd46457e1ab4e55c3fcfa5b99898be1663d68e8..2eed51fa44a5264300b84c6e8c47bbbde6b0647b 100644 (file)
@@ -474,7 +474,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;
@@ -482,7 +482,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]");