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:
Andre Oppermann 2003-11-25 20:58:59 +00:00
parent 72b9c8c9fd
commit 943ae30252
2 changed files with 8 additions and 4 deletions

View File

@ -2857,9 +2857,11 @@ tcp_mss(tp, offer)
tp->snd_cwnd = min(4 * mss, max(2 * mss, 4380));
#ifdef INET6
else if ((isipv6 && in6_localaddr(&inp->in6p_faddr)) ||
(!isipv6 && in_localaddr(inp->inp_faddr)))
tp->snd_cwnd = mss * ss_fltsz_local;
(!isipv6 && in_localaddr(inp->inp_faddr)))
#else
else if (in_localaddr(inp->inp_faddr))
#endif
tp->snd_cwnd = mss * ss_fltsz_local;
else
tp->snd_cwnd = mss * ss_fltsz;
}

View File

@ -2857,9 +2857,11 @@ tcp_mss(tp, offer)
tp->snd_cwnd = min(4 * mss, max(2 * mss, 4380));
#ifdef INET6
else if ((isipv6 && in6_localaddr(&inp->in6p_faddr)) ||
(!isipv6 && in_localaddr(inp->inp_faddr)))
tp->snd_cwnd = mss * ss_fltsz_local;
(!isipv6 && in_localaddr(inp->inp_faddr)))
#else
else if (in_localaddr(inp->inp_faddr))
#endif
tp->snd_cwnd = mss * ss_fltsz_local;
else
tp->snd_cwnd = mss * ss_fltsz;
}