-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[inetstack] Bug Fix: Check for window sizes before creating socket
- Loading branch information
1 parent
77fbdf9
commit e0384c4
Showing
5 changed files
with
138 additions
and
43 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
network_simulator/input/tcp/accept/accept-large-window-size.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,17 @@ | ||
// Test for blocking accept with a large window size. | ||
|
||
// 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 14> | ||
// Send SYN-ACK packet. | ||
+.0 TCP > S. seq 0(0) ack 1 win 65535 <mss 1450,wscale 0> | ||
// Receive ACK on SYN-ACK packet. | ||
+.2 TCP < . seq 1(0) ack 1 win 65535 <nop> | ||
|
||
// Succeed to accept connection. | ||
+.0 wait(500, ...) = 0 |
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