]> git.ipfire.org Git - thirdparty/hostap.git/commit
SAE: Process received commit message through a queue
authorJouni Malinen <jouni@codeaurora.org>
Fri, 1 Mar 2019 17:54:51 +0000 (19:54 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 6 Mar 2019 11:06:50 +0000 (13:06 +0200)
commitff9f40aee1e405b40bd9ffdf1f5e4edd79f54b19
treed1956c30138eed649bc4dba6b1715da0021f1f9f
parenta053ab95900bf4df874e9697161e39c66f37afbc
SAE: Process received commit message through a queue

This allows better control of processing new SAE sessions so that other
operations can be given higher priority during bursts of SAE requests,
e.g., during a potential DoS attack. The receive commit messages are
queued (up to maximum of 15 entries) and processed from eloop callback.
If the queue has multiple pending entries, more wait time is used to go
through the each new entry to reduce heavy CPU load from SAE processing.

Enable anti-clogging token use also based on the pending commit message
queue and not only based on the already started sessions.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/hostapd.c
src/ap/hostapd.h
src/ap/ieee802_11.c
src/ap/ieee802_11.h