aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_wired.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/driver_wired.c')
-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 e5e57c5..186f349 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__ */
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__OpenBSD__)
{
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 /* __NetBSD__ */
+#endif /* defined(__NetBSD__) || defined(__OpenBSD__) */
if (ioctl(s, add ? SIOCADDMULTI : SIOCDELMULTI, (caddr_t) &ifr) < 0) {
perror("ioctl[SIOC{ADD/DEL}MULTI]");