Skip to content
Snippets Groups Projects
Commit 4814326b authored by Vlad Yasevich's avatar Vlad Yasevich
Browse files

sctp: prevent too-fast association id reuse


We use the idr subsystem and always ask for an id
at or above 1.  This results in a id reuse when one
association is terminated while another is created.

To prevent re-use, we keep track of the last id returned
and ask for that id + 1 as a base for each query.  We let
the idr spin lock protect this base id as well.

Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
parent da85b739
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment