svn commit: r347094 - stable/12/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat May 4 10:33:32 UTC 2019
Author: tuexen
Date: Sat May 4 10:33:31 2019
New Revision: 347094
URL: https://svnweb.freebsd.org/changeset/base/347094
Log:
MFC r344148:
Fix a byte ordering issue for the advertised receiver window in ACK
segments sent in TIMEWAIT state, which I introduced in r336937.
Sponsored by: Netflix, Inc.
Modified:
stable/12/sys/netinet/tcp_timewait.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/netinet/tcp_timewait.c
==============================================================================
--- stable/12/sys/netinet/tcp_timewait.c Sat May 4 10:13:37 2019 (r347093)
+++ stable/12/sys/netinet/tcp_timewait.c Sat May 4 10:33:31 2019 (r347094)
@@ -302,7 +302,7 @@ tcp_twstart(struct tcpcb *tp)
if (SEQ_GT(tp->rcv_adv, tp->rcv_nxt) &&
recwin < (tp->rcv_adv - tp->rcv_nxt))
recwin = (tp->rcv_adv - tp->rcv_nxt);
- tw->last_win = htons((u_short)(recwin >> tp->rcv_scale));
+ tw->last_win = (u_short)(recwin >> tp->rcv_scale);
/*
* Set t_recent if timestamps are used on the connection.
More information about the svn-src-all
mailing list