Lines Matching defs:mb_copy
1657 struct mbuf *mb_copy;
1667 mb_copy = m_copypacket(m, M_NOWAIT);
1668 if (mb_copy && (!M_WRITABLE(mb_copy) || mb_copy->m_len < hlen))
1669 mb_copy = m_pullup(mb_copy, hlen);
1670 if (mb_copy == NULL)
1673 send_packet(vifp, mb_copy);
2325 struct mbuf *mb_copy, *mm;
2335 mb_copy = pim_register_prepare(ip, m);
2336 if (mb_copy == NULL)
2343 for (mm = mb_copy; mm; mm = mb_copy) {
2344 mb_copy = mm->m_nextpkt;
2368 struct mbuf *mb_copy = NULL;
2381 mb_copy = m_copypacket(m, M_NOWAIT);
2382 if (mb_copy == NULL)
2384 mb_copy = m_pullup(mb_copy, ip->ip_hl << 2);
2385 if (mb_copy == NULL)
2389 ip = mtod(mb_copy, struct ip *);
2398 ip->ip_sum = in_cksum(mb_copy, ip->ip_hl << 2);
2401 mb_copy->m_pkthdr.csum_flags |= CSUM_IP;
2402 if (ip_fragment(ip, &mb_copy, mtu, 0) != 0) {
2403 m_freem(mb_copy);
2407 return mb_copy;
2415 struct mbuf *mb_copy, struct mfc *rt)
2429 m_freem(mb_copy);
2435 mb_first->m_next = mb_copy;
2466 pim_register_send_rp(struct ip *ip, struct vif *vifp, struct mbuf *mb_copy,
2478 m_freem(mb_copy);
2487 m_freem(mb_copy);
2492 mb_first->m_next = mb_copy;