Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2014 12:11:02 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r275320 - head/sys/netinet
Message-ID:  <201411301211.sAUCB2iv034974@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Sun Nov 30 12:11:01 2014
New Revision: 275320
URL: https://svnweb.freebsd.org/changeset/base/275320

Log:
  Missed in r274421: use sbavail() instead of bare access to sb_cc.

Modified:
  head/sys/netinet/tcp_usrreq.c

Modified: head/sys/netinet/tcp_usrreq.c
==============================================================================
--- head/sys/netinet/tcp_usrreq.c	Sun Nov 30 11:59:20 2014	(r275319)
+++ head/sys/netinet/tcp_usrreq.c	Sun Nov 30 12:11:01 2014	(r275320)
@@ -925,7 +925,7 @@ tcp_usr_send(struct socket *so, int flag
 			tp->snd_wnd = TTCP_CLIENT_SND_WND;
 			tcp_mss(tp, -1);
 		}
-		tp->snd_up = tp->snd_una + so->so_snd.sb_cc;
+		tp->snd_up = tp->snd_una + sbavail(&so->so_snd);
 		tp->t_flags |= TF_FORCEDATA;
 		error = tcp_output(tp);
 		tp->t_flags &= ~TF_FORCEDATA;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411301211.sAUCB2iv034974>