Style r320614: don't initialize at declaration, new line after declarations,
shorten variable name to avoid extra long lines. No functional changes.
This commit is contained in:
parent
fa193c587e
commit
3e21cbc802
@ -523,12 +523,12 @@ tcp_output(struct tcpcb *tp)
|
|||||||
* XXXGL: should there be used sbused() or sbavail()?
|
* XXXGL: should there be used sbused() or sbavail()?
|
||||||
*/
|
*/
|
||||||
if (V_tcp_do_autosndbuf && so->so_snd.sb_flags & SB_AUTOSIZE) {
|
if (V_tcp_do_autosndbuf && so->so_snd.sb_flags & SB_AUTOSIZE) {
|
||||||
int autosndbuf_mod = 0;
|
int lowat;
|
||||||
if (V_tcp_sendbuf_auto_lowat)
|
|
||||||
autosndbuf_mod = so->so_snd.sb_lowat;
|
|
||||||
|
|
||||||
if ((tp->snd_wnd / 4 * 5) >= so->so_snd.sb_hiwat - autosndbuf_mod &&
|
lowat = V_tcp_sendbuf_auto_lowat ? so->so_snd.sb_lowat : 0;
|
||||||
sbused(&so->so_snd) >= (so->so_snd.sb_hiwat / 8 * 7) - autosndbuf_mod &&
|
if ((tp->snd_wnd / 4 * 5) >= so->so_snd.sb_hiwat - lowat &&
|
||||||
|
sbused(&so->so_snd) >=
|
||||||
|
(so->so_snd.sb_hiwat / 8 * 7) - lowat &&
|
||||||
sbused(&so->so_snd) < V_tcp_autosndbuf_max &&
|
sbused(&so->so_snd) < V_tcp_autosndbuf_max &&
|
||||||
sendwin >= (sbused(&so->so_snd) -
|
sendwin >= (sbused(&so->so_snd) -
|
||||||
(tp->snd_nxt - tp->snd_una))) {
|
(tp->snd_nxt - tp->snd_una))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user