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

@ -2858,8 +2858,10 @@ tcp_mss(tp, offer)
#ifdef INET6
else if ((isipv6 && in6_localaddr(&inp->in6p_faddr)) ||
(!isipv6 && in_localaddr(inp->inp_faddr)))
tp->snd_cwnd = mss * ss_fltsz_local;
#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

@ -2858,8 +2858,10 @@ tcp_mss(tp, offer)
#ifdef INET6
else if ((isipv6 && in6_localaddr(&inp->in6p_faddr)) ||
(!isipv6 && in_localaddr(inp->inp_faddr)))
tp->snd_cwnd = mss * ss_fltsz_local;
#else
else if (in_localaddr(inp->inp_faddr))
#endif
tp->snd_cwnd = mss * ss_fltsz_local;
else
tp->snd_cwnd = mss * ss_fltsz;
}