bin/94735: [wpa] [patch] NDIS driver plus wpa_supplicant does
not work
Scot Hetzel
swhetzel at gmail.com
Mon Apr 10 15:10:20 UTC 2006
The following reply was made to PR bin/94735; it has been noted by GNATS.
From: "Scot Hetzel" <swhetzel at gmail.com>
To: bug-followup at freebsd.org, wpaul at freebsd.org
Cc: cejkar at fit.vutbr.cz, sam at freebsd.org
Subject: Re: bin/94735: [wpa] [patch] NDIS driver plus wpa_supplicant does not work
Date: Mon, 10 Apr 2006 10:05:59 -0500
------=_Part_4355_30160582.1144681559464
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Attached is the patch to src/usr.sbin/wpa/wpa_supplicant/Packet32.c
that implements the winpcap AP{I,B} which uses TRUE/FALSE as the
return values for PacketGetAdapterNames to indicate a success or
failure to find the adapter name.
http://www.winpcap.org/docs/man/html/Packet32_8c.html
Please apply this patch to -CURRENT, RELENG_6, and RELENG_6_1.
Scot
--
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
------=_Part_4355_30160582.1144681559464
Content-Type: text/plain; name=patch-Packet32.c; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Attachment-Id: f_eluxm1jh
Content-Disposition: attachment; filename="patch-Packet32.c"
Index: Packet32.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/wpa/wpa_supplicant/Packet32.c,v
retrieving revision 1.2.2.1
diff -u -r1.2.2.1 Packet32.c
--- Packet32.c 27 Oct 2005 17:06:47 -0000 1.2.2.1
+++ Packet32.c 31 Mar 2006 01:37:18 -0000
@@ -246,15 +246,15 @@
mib[5] = 0; /* no flags */
if (sysctl (mib, 6, NULL, &needed, NULL, 0) < 0)
- return(EIO);
+ return(FALSE);
buf = malloc (needed);
if (buf == NULL)
- return(ENOMEM);
+ return(FALSE);
if (sysctl (mib, 6, buf, &needed, NULL, 0) < 0) {
free(buf);
- return(EIO);
+ return(FALSE);
}
lim = buf + needed;
@@ -269,7 +269,7 @@
if (strnstr(sdl->sdl_data, "ndis", sdl->sdl_nlen)) {
if ((spc + sdl->sdl_nlen) > *len) {
free(buf);
- return(ENOSPC);
+ return(FALSE);
}
strncpy(plist, sdl->sdl_data, sdl->sdl_nlen);
plist += (sdl->sdl_nlen + 1);
@@ -302,7 +302,7 @@
if (strnstr(sdl->sdl_data, "ndis", sdl->sdl_nlen)) {
if ((spc + sdl->sdl_nlen) > *len) {
free(buf);
- return(ENOSPC);
+ return(FALSE);
}
strncpy(plist, sdl->sdl_data, sdl->sdl_nlen);
plist += (sdl->sdl_nlen + 1);
@@ -317,7 +317,7 @@
*len = spc + 1;
- return(0);
+ return(TRUE);
}
void
------=_Part_4355_30160582.1144681559464--
More information about the freebsd-bugs
mailing list