Re: [PATCH] hostapd: Support SO_BINDTODEVICE for radius client.

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

 



On Fri, Jun 12, 2020 at 01:08:32PM +0200, Andreas Tobler wrote:
> thanks for this patch. We applied it locally and with some modifications we
> got it to work.
> 
> The most important modification for us was to move the 'force disconnect
> part', the one which follows after the client-addr bind, before we do the
> SO_BINDTODEVICE.
> If we do a connect with the disconnect_addr which has a sin_family
> AF_UNSPEC, we loose the SO_BINDTODEVICE on the socket.
> This is the reason we moved it right before we bind the device.
> 
> The second modification is the usage of setsockopt(). Your's was not wrong
> but irritating while reading the first time. We just use the devicename and
> its length for the 4th and 5th argument instead of the irfeq.
> 
> Attached the updated patch with our modifications.

Thanks, applied with fixes and cleanup.
 
-- 
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