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

SHUTDOWN is accepted even if incoming user data is missing #8

Open
tuexen opened this issue Sep 4, 2015 · 0 comments
Open

SHUTDOWN is accepted even if incoming user data is missing #8

tuexen opened this issue Sep 4, 2015 · 0 comments
Assignees
Labels

Comments

@tuexen
Copy link
Member

tuexen commented Sep 4, 2015

Why does the following script does not issue an ABORT in response to the SHUTDOWN?

// Create a blocking 1-to-1 style socket
+0.0 socket(..., SOCK_STREAM, IPPROTO_SCTP) = 3
+0.0 bind(3, ..., ...) = 0
+0.0 listen(3, 1) = 0
+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, ...]
+0.1 < sctp: COOKIE_ECHO[flgs=0, len=..., val=...]
+0.0 > sctp: COOKIE_ACK[flgs=0]
+0.0 accept(3, ..., ...) = 4
+0.0 close(3) = 0

// Inject the first message and verify the immediate sending of a SACK
+0.0 < sctp: DATA[flgs=BE, len=116, tsn=1, sid=0, ssn=0, ppid=0]
+0.0 read(4, ..., 200) = 100
+0.0 > sctp: SACK[flgs=0, cum_tsn=1, a_rwnd=..., gaps=[], dups=[]]
// Inject the third message (the second is missing)
+0.0 < sctp: DATA[flgs=BE, len=116, tsn=3, sid=0, ssn=3, ppid=0]
// Check if a SACK with a gap report is sent immediately
+0.0 > sctp: SACK[flgs=0, cum_tsn=1, a_rwnd=..., gaps=[2:2], dups=[]]

// Tear down the association
+1.0 < sctp: SHUTDOWN[flgs=0, cum_tsn=0]
+0.0 > sctp: SHUTDOWN_ACK[flgs=0]
+0.0 < sctp: SHUTDOWN_COMPLETE[flgs=0]
+0.0 close(4) = 0
@tuexen tuexen added the bug label Sep 4, 2015
@tuexen tuexen self-assigned this Sep 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant