diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2011-04-30 16:30:18 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2011-04-30 16:30:18 +0000 |
commit | 29bd2010d4e3fc4d62cd46c06de5d87b81194a47 (patch) | |
tree | a68a399b39a5b35e052c946639038ef38fc42a4d /sys/netinet | |
parent | 29bf94b8d88b72e21052d76a3edbccab929e6729 (diff) | |
download | src-29bd2010d4e3fc4d62cd46c06de5d87b81194a47.tar.gz src-29bd2010d4e3fc4d62cd46c06de5d87b81194a47.zip |
Fix a mismerge from p4 in that in_localaddr() is not available without INET.
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days
Notes
Notes:
svn path=/head/; revision=221264
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_input.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 70c1522680e8..71c34117f4e1 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -370,7 +370,11 @@ cc_conn_init(struct tcpcb *tp) else if (isipv6 && in6_localaddr(&inp->in6p_faddr)) tp->snd_cwnd = tp->t_maxseg * V_ss_fltsz_local; #endif -#if defined(INET) || defined(INET6) +#if defined(INET) && defined(INET6) + else if (!isipv6 && in_localaddr(inp->inp_faddr)) + tp->snd_cwnd = tp->t_maxseg * V_ss_fltsz_local; +#endif +#ifdef INET else if (in_localaddr(inp->inp_faddr)) tp->snd_cwnd = tp->t_maxseg * V_ss_fltsz_local; #endif |