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
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user