diff options
author | pav <pav@FreeBSD.org> | 2006-06-17 00:51:05 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2006-06-17 00:51:05 +0800 |
commit | a3484ac288f4fe2cb98b5391c9a10a39f961c151 (patch) | |
tree | c68944c4715ca842c041bddced8ae2b8c17c5a4c /net/wmwifi | |
parent | ce1407788a61d3340cc1cbebf94a09f8ea439598 (diff) | |
download | freebsd-ports-gnome-a3484ac288f4fe2cb98b5391c9a10a39f961c151.tar.gz freebsd-ports-gnome-a3484ac288f4fe2cb98b5391c9a10a39f961c151.tar.zst freebsd-ports-gnome-a3484ac288f4fe2cb98b5391c9a10a39f961c151.zip |
- Skip all loopback and point-to-point interfaces
PR: ports/98885
Submitted by: Eric P. Scott <eps+pbug0606@ana.com>
Approved by: Ulrich Spoerlein <uspoerlein@gmail.com> (maintainer)
Diffstat (limited to 'net/wmwifi')
-rw-r--r-- | net/wmwifi/Makefile | 2 | ||||
-rw-r--r-- | net/wmwifi/files/patch-wireless.c | 13 |
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) |