Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F97489114
D36864.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
692 B
Referenced Files
None
Subscribers
None
D36864.diff
View Options
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -464,13 +464,13 @@
* are above the previous ones.
* Allow UDP port number changes in this case.
*/
- if ((thflags & TH_SYN) && SEQ_GT(th->th_seq, tw->rcv_nxt)) {
+ if (((thflags & (TH_SYN | TH_ACK)) == TH_SYN) &&
+ SEQ_GT(th->th_seq, tw->rcv_nxt)) {
/*
* In case we can't upgrade our lock just pretend we have
* lost this packet.
*/
- if (((thflags & (TH_SYN | TH_ACK)) == TH_SYN) &&
- INP_TRY_UPGRADE(inp) == 0)
+ if (INP_TRY_UPGRADE(inp) == 0)
goto drop;
tcp_twclose(tw, 0);
TCPSTAT_INC(tcps_tw_recycles);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 30, 4:28 PM (21 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13192365
Default Alt Text
D36864.diff (692 B)
Attached To
Mode
D36864: Improve handling of SYN-ACK segments in TIMEWAIT state
Attached
Detach File
Event Timeline
Log In to Comment