enclose IPv6 part with ifdef INET6.
Obtained from: KAME
This commit is contained in:
parent
111b0d0d29
commit
b339980338
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121285
@ -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);
|
||||
/*
|
||||
|
@ -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);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user