Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socketoption sctp_add_streams returns -1 if both instrms and outstrms are 0 #24

Open
hoelscher opened this issue May 30, 2016 · 0 comments
Milestone

Comments

@hoelscher
Copy link

hoelscher commented May 30, 2016

If an Application calls the setsockopt syscall with SCTP_ADD_STREAMS option to add 0 new incoming and 0 new outgoing streams, the syscall returns an error. The RFC doen't make any constraint for that values unless the limit of max streams. So that means that this would be a valid call.
Besides that both values 0 could be a legal combination without any effect.
see https://github.com/nplab/RFC6525_Testsuite/blob/master/api_tests/sctp-sr-api-as/sctp-sr-api-as-v-5-1.pkt

@tuexen tuexen added this to the SocketAPI milestone Jun 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants