diff options
author | ume <ume@FreeBSD.org> | 2003-10-20 16:19:01 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-10-20 16:19:01 +0000 |
commit | 01f1aaf2956e477716ac11b9e0ddf80d286ef67a (patch) | |
tree | 077920c8eb9912bc075a0710bb260a1cf20f4faf | |
parent | 72e9866f3dd8a1406840c9d2e18b12f7ff939141 (diff) | |
download | FreeBSD-src-01f1aaf2956e477716ac11b9e0ddf80d286ef67a.zip FreeBSD-src-01f1aaf2956e477716ac11b9e0ddf80d286ef67a.tar.gz |
enclose IPv6 part with ifdef INET6.
Obtained from: KAME
-rw-r--r-- | sys/netinet/tcp_input.c | 5 | ||||
-rw-r--r-- | sys/netinet/tcp_reass.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index a72906a..4d0beb2 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -2717,13 +2717,14 @@ tcp_mss(tp, offer) #else mss = ifp->if_mtu - min_protoh; #endif +#ifdef INET6 if (isipv6) { if (!in6_localaddr(&inp->in6p_faddr)) mss = min(mss, tcp_v6mssdflt); - } else { + } else +#endif if (!in_localaddr(inp->inp_faddr)) mss = min(mss, tcp_mssdflt); - } } mss = min(mss, offer); /* diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index a72906a..4d0beb2 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -2717,13 +2717,14 @@ tcp_mss(tp, offer) #else mss = ifp->if_mtu - min_protoh; #endif +#ifdef INET6 if (isipv6) { if (!in6_localaddr(&inp->in6p_faddr)) mss = min(mss, tcp_v6mssdflt); - } else { + } else +#endif if (!in_localaddr(inp->inp_faddr)) mss = min(mss, tcp_mssdflt); - } } mss = min(mss, offer); /* |