Author: tuexen
Date: Fri Feb 15 09:45:17 2019
New Revision: 344148
URL: https://svnweb.freebsd.org/changeset/base/344148

Log:
  Fix a byte ordering issue for the advertised receiver window in ACK
  segments sent in TIMEWAIT state, which I introduced in r336937.
  
  MFC after:    3 days
  Sponsored by: Netflix, Inc.

Modified:
  head/sys/netinet/tcp_timewait.c

Modified: head/sys/netinet/tcp_timewait.c
==============================================================================
--- head/sys/netinet/tcp_timewait.c     Fri Feb 15 09:25:52 2019        
(r344147)
+++ head/sys/netinet/tcp_timewait.c     Fri Feb 15 09:45:17 2019        
(r344148)
@@ -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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to