Skip to content

Commit

Permalink
net-test: mss value change for tcp setsockopt mss
Browse files Browse the repository at this point in the history
Since the kernel commit 34dfde4ad87b ("tcp: Return user
mss for TCP_MAXSEG in CLOSE/LISTEN state if user_mss set"),
the value for mss was changed after user set mss.

Signed-off-by: Rongguang Wei <[email protected]>
  • Loading branch information
Rongguang Wei authored and nealcardwell committed Dec 4, 2024
1 parent 8051382 commit a9b4ade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gtests/net/tcp/mss/mss-setsockopt-tcp_maxseg-client.pkt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

// Set MSS to 1100.
+.01 setsockopt(3, SOL_TCP, TCP_MAXSEG, [1100], 4) = 0
+.01 getsockopt(3, SOL_TCP, TCP_MAXSEG, [536], [4]) = 0
+.01 getsockopt(3, SOL_TCP, TCP_MAXSEG, [1100], [4]) = 0

+.08...0.180 connect(3, ..., ...) = 0

Expand Down
2 changes: 1 addition & 1 deletion gtests/net/tcp/mss/mss-setsockopt-tcp_maxseg-server.pkt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// Set MSS to 1100.
+.01 setsockopt(3, SOL_TCP, TCP_MAXSEG, [1100], 4) = 0
+.01 getsockopt(3, SOL_TCP, TCP_MAXSEG, [536], [4]) = 0
+.01 getsockopt(3, SOL_TCP, TCP_MAXSEG, [1100], [4]) = 0

// Establish a connection with an outgoing advertised MSS of 1100.
+.08 < S 0:0(0) win 32792 <mss 1300,nop,wscale 7>
Expand Down

0 comments on commit a9b4ade

Please sign in to comment.