summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/wmwifi/Makefile2
-rw-r--r--net/wmwifi/files/patch-wireless.c13
2 files changed, 13 insertions, 2 deletions
diff --git a/net/wmwifi/Makefile b/net/wmwifi/Makefile
index ef59d214bf9b..f5dec2b0f7c3 100644
--- a/net/wmwifi/Makefile
+++ b/net/wmwifi/Makefile
@@ -7,8 +7,8 @@
PORTNAME= wmwifi
PORTVERSION= 0.4
-PORTREVISION= 1
DISTVERSIONSUFFIX=-bsd
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://digitalssg.net/debian/
diff --git a/net/wmwifi/files/patch-wireless.c b/net/wmwifi/files/patch-wireless.c
index 164624512de7..468d2d9d5b2d 100644
--- a/net/wmwifi/files/patch-wireless.c
+++ b/net/wmwifi/files/patch-wireless.c
@@ -1,5 +1,5 @@
--- src/wireless.c.orig Tue Mar 9 20:39:17 2004
-+++ src/wireless.c Mon Jul 11 10:57:43 2005
++++ src/wireless.c Sun Jun 11 00:46:29 2006
@@ -143,6 +143,7 @@
max = get_max_ifs();
@@ -8,6 +8,17 @@
if (old > max)
old = max; /* just be sure to not be out of bounds */
+@@ -178,8 +179,8 @@
+ len = sizeof(ifmd);
+ sysctl(name, 6, &ifmd, &len, NULL, 0);
+
+- /* skip loopback interface */
+- if (!strcmp(ifmd.ifmd_name, "lo0"))
++ /* skip loopback and point-to-point interfaces */
++ if ((ifmd.ifmd_flags&(IFF_LOOPBACK|IFF_POINTOPOINT))!=0)
+ continue;
+
+ s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
@@ -193,9 +194,11 @@
if (ioctl(s, SIOCGIFMEDIA, (caddr_t) &ifmr) < 0)