correct multicast packet MTU check. sync w/kame
This commit is contained in:
parent
d675751f34
commit
d08a33e8b1
@ -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 $ */
|
/* $KAME: ip6_mroute.c,v 1.49 2001/07/25 09:21:18 jinmei Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -46,7 +46,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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"
|
#include "opt_inet.h"
|
||||||
|
|
||||||
@ -1477,7 +1477,7 @@ phyint_send(ip6, mifp, m)
|
|||||||
* if it would fit in the MTU of the interface.
|
* if it would fit in the MTU of the interface.
|
||||||
*/
|
*/
|
||||||
linkmtu = IN6_LINKMTU(ifp);
|
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_len = sizeof(struct sockaddr_in6);
|
||||||
dst6->sin6_family = AF_INET6;
|
dst6->sin6_family = AF_INET6;
|
||||||
dst6->sin6_addr = ip6->ip6_dst;
|
dst6->sin6_addr = ip6->ip6_dst;
|
||||||
|
Loading…
Reference in New Issue
Block a user