Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 correct multicast packet MTU check. sync w/kame



details:   https://anonhg.NetBSD.org/src/rev/cc7ccf69f2c7
branches:  trunk
changeset: 534415:cc7ccf69f2c7
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Jul 25 12:41:51 2002 +0000

description:
correct multicast packet MTU check.  sync w/kame

diffstat:

 sys/netinet6/ip6_mroute.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cd3bb457afd3 -r cc7ccf69f2c7 sys/netinet6/ip6_mroute.c
--- a/sys/netinet6/ip6_mroute.c Thu Jul 25 12:39:26 2002 +0000
+++ b/sys/netinet6/ip6_mroute.c Thu Jul 25 12:41:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_mroute.c,v 1.35 2002/06/29 12:33:33 itojun Exp $   */
+/*     $NetBSD: ip6_mroute.c,v 1.36 2002/07/25 12:41:51 itojun Exp $   */
 /*     $KAME: ip6_mroute.c,v 1.49 2001/07/25 09:21:18 jinmei Exp $     */
 
 /*
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_mroute.c,v 1.35 2002/06/29 12:33:33 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_mroute.c,v 1.36 2002/07/25 12:41:51 itojun Exp $");
 
 #include "opt_inet.h"
 
@@ -1477,7 +1477,7 @@
         * 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;



Home | Main Index | Thread Index | Old Index