fixed a bug that IPv6 multicast packet is not forwarded if its packet size is equal to the outgoing interface's MTU

Approved by: re
Obtained from: KAME
MFC after: 3 days
This commit is contained in:
SUZUKI Shinsuke 2002-12-16 01:41:07 +00:00
parent 703792974d
commit 6645ef44ad

View File

@ -1476,7 +1476,7 @@ phyint_send(ip6, mifp, m)
* Put the packet into the sending queue of the outgoing interface
* if it would fit in the MTU of the interface.
*/
if (mb_copy->m_pkthdr.len < ifp->if_mtu || ifp->if_mtu < IPV6_MMTU) {
if (mb_copy->m_pkthdr.len <= ifp->if_mtu || ifp->if_mtu < IPV6_MMTU) {
dst6->sin6_len = sizeof(struct sockaddr_in6);
dst6->sin6_family = AF_INET6;
dst6->sin6_addr = ip6->ip6_dst;