summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorAndre Oppermann <andre@FreeBSD.org>2003-11-25 20:58:59 +0000
committerAndre Oppermann <andre@FreeBSD.org>2003-11-25 20:58:59 +0000
commit943ae3025277817984ceee9e56437b9ee10165ac (patch)
tree14054509ced868097156904aed2d72e622104413 /sys/netinet/tcp_input.c
parent72b9c8c9fd33286695cd1bab67c3cf89931b0186 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index eca5cb2174da..a43e14bf046a 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -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;
}