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

Specify non-unicast source addresses #26

Open
tuexen opened this issue Jul 13, 2015 · 1 comment
Open

Specify non-unicast source addresses #26

tuexen opened this issue Jul 13, 2015 · 1 comment
Assignees

Comments

@tuexen
Copy link
Contributor

tuexen commented Jul 13, 2015

This is necessary for some tests like sctp-fh-o-5-3-5.

@tuexen tuexen self-assigned this Jul 13, 2015
@tuexen tuexen added this to the ETSI Conformance Test suite milestone Aug 5, 2015
@tuexen
Copy link
Contributor Author

tuexen commented Feb 15, 2017

As suggested by Neal, something like

// Create a non-blocking 1-to-1 style listening socket
+0.0 socket(..., SOCK_STREAM, IPPROTO_SCTP) = 3
+0.0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
+0.0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
+0.0 bind(3, ..., ...) = 0
+0.0 listen(3, 1) = 0
// Get a valid cookie
+0.0 < sctp: INIT[flgs=0, tag=1, a_rwnd=1500, os=1, is=1, tsn=1]
+0.0 > sctp: INIT_ACK[flgs=0, tag=2, a_rwnd=..., os=..., is=..., tsn=1, ...]
// Need to send the following from a non-unicast address
+0.0 < 224.0.0.0 > 192.168.0.1 sctp: COOKIE_ECHO[flgs=0, len=..., val=...]
// Ensure that the message has been discarded
+0.1 accept(3, ..., ...) = -1 EAGAIN (Resource temporarily unavailable)
+0.0 close(3) = 0

should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant