In message <20200609095102.GA10103@xxxxx>, 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 <Cy.Schubert@xxxxxxxxxxxxx> FreeBSD UNIX: <cy@xxxxxxxxxxx> Web: https://FreeBSD.org NTP: <cy@xxxxxxxxxx> Web: https://nwtime.org The need of the many outweighs the greed of the few. _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap