Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Apr 2015 18:57:32 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r382939 - head/net/hostapd/files
Message-ID:  <201504011857.t31IvWFB040192@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Wed Apr  1 18:57:32 2015
New Revision: 382939
URL: https://svnweb.freebsd.org/changeset/ports/382939

Log:
  net/hostapd: Unbreak new version on DragonFly

Added:
  head/net/hostapd/files/patch-src_drivers_driver__bsd.c   (contents, props changed)
  head/net/hostapd/files/patch-src_wps_wps__upnp.c   (contents, props changed)

Added: head/net/hostapd/files/patch-src_drivers_driver__bsd.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/hostapd/files/patch-src_drivers_driver__bsd.c	Wed Apr  1 18:57:32 2015	(r382939)
@@ -0,0 +1,14 @@
+--- src/drivers/driver_bsd.c.orig	2015-03-15 17:30:39 UTC
++++ src/drivers/driver_bsd.c
+@@ -623,7 +623,11 @@ rtbuf_len(void)
+ static int bsd_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr,
+ 			  int reason_code);
+ 
++#ifdef __DragonFly__
++const char *
++#else
+ static const char *
++#endif
+ ether_sprintf(const u8 *addr)
+ {
+ 	static char buf[sizeof(MACSTR)];

Added: head/net/hostapd/files/patch-src_wps_wps__upnp.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/hostapd/files/patch-src_wps_wps__upnp.c	Wed Apr  1 18:57:32 2015	(r382939)
@@ -0,0 +1,20 @@
+--- src/wps/wps_upnp.c.orig	2015-03-15 17:30:39 UTC
++++ src/wps/wps_upnp.c
+@@ -837,7 +837,7 @@ fail:
+ }
+ 
+ 
+-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
+ #include <sys/sysctl.h>
+ #include <net/route.h>
+ #include <net/if_dl.h>
+@@ -924,7 +924,7 @@ int get_netif_info(const char *net_if, u
+ 		goto fail;
+ 	}
+ 	os_memcpy(mac, req.ifr_addr.sa_data, 6);
+-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
+ 	if (eth_get(net_if, mac) < 0) {
+ 		wpa_printf(MSG_ERROR, "WPS UPnP: Failed to get MAC address");
+ 		goto fail;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504011857.t31IvWFB040192>