-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1476 from microsoft/bugfix-inetstack-check-err
[inetstack] Bug Fix: Check extra error cases
- Loading branch information
Showing
6 changed files
with
51 additions
and
20 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
network_simulator/input/tcp/accept/accept-duplicate-syn.pkt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Test for blocking accept with a duplicate SYN received. | ||
|
||
// Accept a connection. | ||
+.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500 | ||
+.0 bind(500, ..., ...) = 0 | ||
+.0 listen(500, 1) = 0 | ||
+.2 accept(500, ..., ...) = 0 | ||
|
||
// Receive SYN packet. | ||
+.2 TCP < S seq 0(0) win 65535 <mss 1450,wscale 0> | ||
// Send SYN-ACK packet. | ||
+.0 TCP > S. seq 0(0) ack 1 win 65535 <mss 1450,wscale 0> | ||
|
||
// Receive another SYN packet. | ||
+.1 TCP < S seq 0(0) win 65535 <mss 1450,wscale 0> | ||
|
||
// Receive ACK on SYN-ACK packet. | ||
+.1 TCP < . seq 1(0) ack 1 win 65535 <nop> | ||
|
||
// Succeed to accept connection. | ||
+.0 wait(500, ...) = 0 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters