[SCTP] Peeled off/accepted sockets not in the right bind_bucket.
hlist changes caused the peeloff testcase to fail. Investigation shows that the peeloff sockets is not bound into bind_bucket, so the bucket has gone away (original socket closed). Fixing this, shows a problem that inet->num wasn't set on peeled off sockets, so autobind kicks in creating a new bind_bucket. Ugh. One bug had been hiding the other one all this time. Fix 1) peeledoff/accepted sockets need to have their own socket woven into the bind_bucket->owner list. 2) Set inet->num, so autobind doesn't think it needs to kick in.
Showing
Please register or sign in to comment