Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153364538
D56321.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
935 B
Referenced Files
None
Subscribers
None
D56321.id.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
@@ -215,12 +215,17 @@
/*
* If a new connection request is received
* while in TIME_WAIT, drop the old connection
- * and start over if the sequence numbers
- * are above the previous ones.
+ * and start over if allowed by RFC 6191.
* Allow UDP port number changes in this case.
*/
if (((thflags & (TH_SYN | TH_ACK)) == TH_SYN) &&
- SEQ_GT(th->th_seq, tp->rcv_nxt)) {
+ ((((tp->t_flags & TF_RCVD_TSTMP) != 0) &&
+ ((to->to_flags & TOF_TS) != 0) &&
+ TSTMP_LT(tp->ts_recent, to->to_tsval)) ||
+ (((tp->t_flags & TF_RCVD_TSTMP) == 0) &&
+ ((to->to_flags & TOF_TS) != 0) &&
+ (V_tcp_tolerate_missing_ts == 0)) ||
+ SEQ_GT(th->th_seq, tp->rcv_nxt))) {
/*
* In case we can't upgrade our lock just pretend we have
* lost this packet.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 5:48 PM (8 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31705305
Default Alt Text
D56321.id.diff (935 B)
Attached To
Mode
D56321: tcp: use RFC 6191 for connection recycling in TIME-WAIT
Attached
Detach File
Event Timeline
Log In to Comment