Re: [PATCH] hostapd: Report error on unknown ACCEPT_ACL/DENY_ACL commands

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

 



On Wed, Jan 04, 2023 at 04:53:50PM +0100, Raphaël Mélotte wrote:
> Currently when using ACCEPT_ACL or DENY_ACL, no error is reported if
> the rest of the command is unknown (e.g. 'ACCEPT_ACL FOOBAR' reports
> 'OK').
> 
> On the other hand, hostapd_cli makes it possible to use 'accept_acl'
> and 'deny_acl' in lowercase, but the rest of the command (i.e. 'SHOW',
> 'ADD_MAC', 'CLEAR', etc) must be in uppercase.
> 
> As a result, the command 'accept_acl clear' could seem valid when
> using hostapd_cli (as it reports 'OK'), while it actually does not do
> anything (because 'clear' must be in uppercase).
> 
> To let users know whether the command really succeeded or not, report
> an error when the command was not understood.
> 
> Note that this is also consistent with the way it is currently
> implemented in wpa_supplicant.

Thanks, applied.
 
-- 
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