mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Restructure a too broad ifdef which was disabling the setting of the
tcp flightsize sysctl value for local networks in the !INET6 case. Approved by: re (scottl)
This commit is contained in:
parent
72b9c8c9fd
commit
943ae30252
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122987
@ -2857,9 +2857,11 @@ tcp_mss(tp, offer)
|
|||||||
tp->snd_cwnd = min(4 * mss, max(2 * mss, 4380));
|
tp->snd_cwnd = min(4 * mss, max(2 * mss, 4380));
|
||||||
#ifdef INET6
|
#ifdef INET6
|
||||||
else if ((isipv6 && in6_localaddr(&inp->in6p_faddr)) ||
|
else if ((isipv6 && in6_localaddr(&inp->in6p_faddr)) ||
|
||||||
(!isipv6 && in_localaddr(inp->inp_faddr)))
|
(!isipv6 && in_localaddr(inp->inp_faddr)))
|
||||||
tp->snd_cwnd = mss * ss_fltsz_local;
|
#else
|
||||||
|
else if (in_localaddr(inp->inp_faddr))
|
||||||
#endif
|
#endif
|
||||||
|
tp->snd_cwnd = mss * ss_fltsz_local;
|
||||||
else
|
else
|
||||||
tp->snd_cwnd = mss * ss_fltsz;
|
tp->snd_cwnd = mss * ss_fltsz;
|
||||||
}
|
}
|
||||||
|
@ -2857,9 +2857,11 @@ tcp_mss(tp, offer)
|
|||||||
tp->snd_cwnd = min(4 * mss, max(2 * mss, 4380));
|
tp->snd_cwnd = min(4 * mss, max(2 * mss, 4380));
|
||||||
#ifdef INET6
|
#ifdef INET6
|
||||||
else if ((isipv6 && in6_localaddr(&inp->in6p_faddr)) ||
|
else if ((isipv6 && in6_localaddr(&inp->in6p_faddr)) ||
|
||||||
(!isipv6 && in_localaddr(inp->inp_faddr)))
|
(!isipv6 && in_localaddr(inp->inp_faddr)))
|
||||||
tp->snd_cwnd = mss * ss_fltsz_local;
|
#else
|
||||||
|
else if (in_localaddr(inp->inp_faddr))
|
||||||
#endif
|
#endif
|
||||||
|
tp->snd_cwnd = mss * ss_fltsz_local;
|
||||||
else
|
else
|
||||||
tp->snd_cwnd = mss * ss_fltsz;
|
tp->snd_cwnd = mss * ss_fltsz;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user