aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorMasashi Honma <honma@ictec.co.jp>2010-08-28 08:40:07 (GMT)
committerJouni Malinen <j@w1.fi>2010-08-28 08:40:07 (GMT)
commit60da5e0f3f78f35556912270ab08b522006d25f9 (patch)
treeb883e87b1c81d33d2fcb982483b71bf8b720f42f /src/drivers
parent9ff80a10e8009c0dc65a4b7e08dcf1655cd2a483 (diff)
downloadhostap-60da5e0f3f78f35556912270ab08b522006d25f9.zip
hostap-60da5e0f3f78f35556912270ab08b522006d25f9.tar.gz
hostap-60da5e0f3f78f35556912270ab08b522006d25f9.tar.bz2
Solaris: Add support for wired IEEE 802.1X client
This patch adds support for wired IEEE 802.1X client on the Solaris. I have tested with these: OS : OpenSolaris 2009.06 EAP : EAP-MD5 Switch : Cisco Catalyst 2950
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/driver_wired.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/driver_wired.c b/src/drivers/driver_wired.c
index 2b197f0..de038e2 100644
--- a/src/drivers/driver_wired.c
+++ b/src/drivers/driver_wired.c
@@ -24,6 +24,9 @@
#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)
#include <net/if_dl.h>
#endif /* defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__) */
+#ifdef __sun__
+#include <sys/sockio.h>
+#endif /* __sun__ */
#include "common.h"
#include "eloop.h"
@@ -462,6 +465,10 @@ static int wpa_driver_wired_multi(const char *ifname, const u8 *addr, int add)
struct ifreq ifr;
int s;
+#ifdef __sun__
+ return -1;
+#endif /* __sun__ */
+
s = socket(PF_INET, SOCK_DGRAM, 0);
if (s < 0) {
perror("socket");