summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-07-25 12:43:29 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-07-25 12:43:29 +0000
commit5f5c20c2c7198968c396f064f8391e68b8955f24 (patch)
treefb370e129124cf8a95981881458290e3c6ce9abc
parent189e4ca88f7f2f4e273da4b494ab9613e823cedf (diff)
correct MTU check. sync w/kame
-rw-r--r--sys/netinet6/ip6_mroute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c
index ea8a711e125..94cdf9f798e 100644
--- a/sys/netinet6/ip6_mroute.c
+++ b/sys/netinet6/ip6_mroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_mroute.c,v 1.27 2002/06/29 07:58:30 deraadt Exp $ */
+/* $OpenBSD: ip6_mroute.c,v 1.28 2002/07/25 12:43:28 itojun Exp $ */
/* $KAME: ip6_mroute.c,v 1.45 2001/03/25 08:38:51 itojun Exp $ */
/*
@@ -1487,7 +1487,7 @@ phyint_send(ip6, mifp, m)
* if it would fit in the MTU of the interface.
*/
linkmtu = IN6_LINKMTU(ifp);
- if (mb_copy->m_pkthdr.len < linkmtu || linkmtu < IPV6_MMTU) {
+ if (mb_copy->m_pkthdr.len <= linkmtu || linkmtu < IPV6_MMTU) {
dst6->sin6_len = sizeof(struct sockaddr_in6);
dst6->sin6_family = AF_INET6;
dst6->sin6_addr = ip6->ip6_dst;