openbsd-ports/security/wpa_supplicant/patches/patch-driver_wired_c
reyk 16591b9b32 Add security/wpa_supplicant, a fully-featured implementation of an
IEEE 802.1X supplicant. This port does not support the wireless
WPA/WPA functionality yet, because it is missing in the OpenBSD
net80211 kernel implementation. Successfully tested with 802.1X on
ProCurve switches with OpenBSD running freeradius in the backend.

This port is based on work by Jussi Salzwedel, thanks!

ok aanriot@
2007-07-01 19:50:57 +00:00

21 lines
651 B
Plaintext

--- original/driver_wired.c Sun Dec 31 04:28:05 2006
+++ driver_wired.c Fri May 18 02:06:07 2007
@@ -18,7 +18,7 @@
#ifdef __linux__
#include <netpacket/packet.h>
#endif /* __linux__ */
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
#include <net/if_dl.h>
#endif /* __FreeBSD__ */
@@ -125,7 +125,7 @@ static int wpa_driver_wired_multi(const char *ifname,
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(__OpenBSD__)
{
struct sockaddr_dl *dlp;
dlp = (struct sockaddr_dl *) &ifr.ifr_addr;