Lines Matching refs:copym
3517 struct mbuf *copym;
3520 copym = m_copy(m, 0, M_COPYALL);
3521 if (copym == NULL)
3529 if ((copym->m_flags & M_EXT) != 0 ||
3530 copym->m_len < sizeof(struct ip6_hdr)) {
3531 copym = m_pullup(copym, sizeof(struct ip6_hdr));
3532 if (copym == NULL)
3537 if (copym->m_len < sizeof(*ip6)) {
3538 m_freem(copym);
3543 ip6 = mtod(copym, struct ip6_hdr *);
3555 if ((copym->m_pkthdr.csum_flags & CSUM_DELAY_IPV6_DATA) != 0) {
3556 in6_delayed_cksum(copym, sizeof(struct ip6_hdr));
3557 copym->m_pkthdr.csum_flags &= ~CSUM_DELAY_IPV6_DATA;
3559 copym->m_pkthdr.rcvif = 0;
3560 copym->m_pkthdr.csum_data = 0;
3561 copym->m_pkthdr.csum_flags = 0;
3564 copym->m_pkthdr.rcvif = ifp;
3565 dlil_output(lo_ifp, PF_INET6, copym, 0,
3568 m_free(copym);
3570 (void)if_simloop(ifp, copym, dst->sin6_family, NULL);