Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177659534
D28656.1794969003.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
578 B
Referenced Files
None
Subscribers
None
D28656.1794969003.diff
View Options
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -785,6 +785,10 @@
#endif
hdrlen = sizeof (struct tcpiphdr);
+ if (flags & TH_SYN) {
+ tp->snd_nxt = tp->iss;
+ }
+
/*
* Compute options for segment.
* We only have to care about SYN and established connection
@@ -795,7 +799,6 @@
if ((tp->t_flags & TF_NOOPT) == 0) {
/* Maximum segment size. */
if (flags & TH_SYN) {
- tp->snd_nxt = tp->iss;
to.to_mss = tcp_mssopt(&tp->t_inpcb->inp_inc);
to.to_flags |= TOF_MSS;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 18, 2:30 AM (2 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41813230
Default Alt Text
D28656.1794969003.diff (578 B)
Attached To
Mode
D28656: Fix SEG.SEQ in SYN.ACK when handling SYN in SYN-SENT on socket with TCP_NOOPT enabled.
Attached
Detach File
Event Timeline