Re: UPnP SUBSCRIBE misbehavior in hostapd WPS AP
Cy Schubert <[email protected]> Tue, 09 Jun 2020 06:37:25 -0700
| Newsgroups | gmane.linux.drivers.hostap |
|---|---|
| Message-ID | <[email protected]> |
In message <[email protected]>, Jouni Malinen writes: > On Mon, Jun 08, 2020 at 05:23:56PM -0700, Cy Schubert wrote: > > This won't build under FreeBSD. This patch works around the issue. > > > > diff --git a/src/wps/wps_upnp.c b/src/wps/wps_upnp.c > > @@ -951,7 +951,11 @@ int get_netif_info(const char *net_if, unsigned > > > +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) > > + addr = (struct sockaddr_in *) &req.ifr_addr; > > +#else > > addr = (struct sockaddr_in *) &req.ifr_netmask; > > +#endif > > Thanks. I'll just change this to use ifr_addr for everything to keep > things simpler since that works on Linux as well. Thanks. I have a number of other patches here that should probably be upstreamed. Should I post them here too? -- Cheers, Cy Schubert <[email protected]> FreeBSD UNIX: <[email protected]> Web: https://FreeBSD.org NTP: <[email protected]> Web: https://nwtime.org The need of the many outweighs the greed of the few.