summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2012-01-21 19:42:16 +0000
committerstsp <stsp@openbsd.org>2012-01-21 19:42:16 +0000
commit9c2641a5eda00f1d8910460365d7811fab858de1 (patch)
tree73a66e21f63fe01be2d20545cd74c1bd962a5e0c /sys/dev/softraid.c
parentsanitize stuff a bit more... (diff)
downloadwireguard-openbsd-9c2641a5eda00f1d8910460365d7811fab858de1.tar.xz
wireguard-openbsd-9c2641a5eda00f1d8910460365d7811fab858de1.zip
Implement missing bits of node inactivity accounting in hostap mode.
Small parts of code for this feature were already present but unused. A node becomes inactive after not sending or receiving a frame within 5 minutes. Inactive cached nodes (not authenticated or associated) are automatically cleared from the cache once every hour, making room for new nodes. If the node cache is full and room must be made for a new node, clean either a cached node (active or inactive), or an inactive authenticated or associated node. Also, do not send de-auth frames to nodes which never authenticated, and only send a de-auth frame once for a given node. This part was contributed by Steven Chamberlain, thanks! Tested by myself, krw@, edd@, Steven Chamberlain, and Markus Schatzl. ok deraadt@
Diffstat (limited to 'sys/dev/softraid.c')
0 files changed, 0 insertions, 0 deletions