Re: UPnP SUBSCRIBE misbehavior in hostapd WPS AP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
 
-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux