summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-07 15:51:55 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-07 15:51:55 +0000
commit0c8b7582d0f7f796ce21e0b594bab46fbe3131d3 (patch)
tree17da36af7785be214a47bf51720e95a40b68a6df /sys/netinet
parent130db8e37f5c59e5f18949dc55e4eaf9fc92cf30 (diff)
no need for IPv4 mapped addr support
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_input.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 86914df49c9..3db4bcdcda2 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.114 2002/06/07 06:42:00 itojun Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.115 2002/06/07 15:51:54 itojun Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -3005,19 +3005,11 @@ tcp_mss(tp, offer)
}
#ifdef INET6
else if (is_ipv6) {
- if (inp && IN6_IS_ADDR_V4MAPPED(&inp->inp_faddr6)) {
- /* mapped addr case */
- struct in_addr d;
- bcopy(&inp->inp_faddr6.s6_addr32[3], &d, sizeof(d));
- if (ip_mtudisc || in_localaddr(d))
- mss = ifp->if_mtu - iphlen - sizeof(struct tcphdr);
- } else {
- /*
- * for IPv6, path MTU discovery is always turned on,
- * or the node must use packet size <= 1280.
- */
- mss = IN6_LINKMTU(ifp) - iphlen - sizeof(struct tcphdr);
- }
+ /*
+ * for IPv6, path MTU discovery is always turned on,
+ * or the node must use packet size <= 1280.
+ */
+ mss = IN6_LINKMTU(ifp) - iphlen - sizeof(struct tcphdr);
}
#endif /* INET6 */