Lines Matching refs:mb_copy
1474 struct mbuf *mb_copy;
1486 mb_copy = m_copy(m, 0, M_COPYALL);
1487 if (mb_copy &&
1488 (M_HASCL(mb_copy) || mb_copy->m_len < sizeof(struct ip6_hdr)))
1489 mb_copy = m_pullup(mb_copy, sizeof(struct ip6_hdr));
1490 if (mb_copy == NULL) {
1494 mb_copy->m_flags |= M_MCAST;
1508 m_freem(mb_copy);
1516 error = ip6_output(mb_copy, NULL, &ro, IPV6_FORWARDING,
1547 if (mb_copy->m_pkthdr.len <= ifp->if_mtu || ifp->if_mtu < IPV6_MMTU) {
1558 mb_copy->m_pkthdr.rcvif = 0;
1559 mb_copy->m_pkthdr.csum_data = 0;
1560 mb_copy->m_pkthdr.csum_flags = 0;
1562 error = dlil_output(ifp, PF_INET6, mb_copy,
1565 error = (*ifp->if_output)(ifp, mb_copy,
1581 icmp6_error(mb_copy, ICMP6_PACKET_TOO_BIG, 0, ifp->if_mtu);
1591 mb_copy->m_pkthdr.len);
1595 m_freem(mb_copy); /* simply discard the packet */