Lines Matching defs:mb_copy
1747 struct mbuf *mb_copy;
1758 mb_copy = m_copypacket(m, M_NOWAIT);
1759 if (mb_copy && (!M_WRITABLE(mb_copy) || mb_copy->m_len < hlen))
1760 mb_copy = m_pullup(mb_copy, hlen);
1761 if (mb_copy == NULL)
1764 send_packet(vifp, mb_copy);
2264 struct mbuf *mb_copy, *mm;
2274 mb_copy = pim_register_prepare(ip, m);
2275 if (mb_copy == NULL)
2282 for (mm = mb_copy; mm; mm = mb_copy) {
2283 mb_copy = mm->m_nextpkt;
2307 struct mbuf *mb_copy = NULL;
2320 mb_copy = m_copypacket(m, M_NOWAIT);
2321 if (mb_copy == NULL)
2323 mb_copy = m_pullup(mb_copy, ip->ip_hl << 2);
2324 if (mb_copy == NULL)
2328 ip = mtod(mb_copy, struct ip *);
2337 ip->ip_sum = in_cksum(mb_copy, ip->ip_hl << 2);
2340 mb_copy->m_pkthdr.csum_flags |= CSUM_IP;
2341 if (ip_fragment(ip, &mb_copy, mtu, 0) != 0) {
2342 m_freem(mb_copy);
2346 return mb_copy;
2354 struct mbuf *mb_copy, struct mfc *rt)
2368 m_freem(mb_copy);
2374 mb_first->m_next = mb_copy;
2405 pim_register_send_rp(struct ip *ip, struct vif *vifp, struct mbuf *mb_copy,
2417 m_freem(mb_copy);
2426 m_freem(mb_copy);
2431 mb_first->m_next = mb_copy;