Home | History | Annotate | Download | only in netinet

Lines Matching defs:mb_copy

1723 	struct mbuf *mb_copy;
1731 mb_copy = m_copypacket(m, M_DONTWAIT);
1732 M_PULLUP(mb_copy, hlen);
1733 if (mb_copy == NULL)
1737 tbf_send_packet(vifp, mb_copy);
1739 tbf_control(vifp, mb_copy, mtod(mb_copy, struct ip *),
1746 struct mbuf *mb_copy;
1761 MGETHDR(mb_copy, M_DONTWAIT, MT_DATA);
1762 if (mb_copy == NULL)
1764 mb_copy->m_data += max_linkhdr;
1765 mb_copy->m_pkthdr.len = len;
1766 mb_copy->m_len = sizeof(multicast_encap_iphdr);
1768 if ((mb_copy->m_next = m_copypacket(m, M_DONTWAIT)) == NULL) {
1769 m_freem(mb_copy);
1775 mb_copy = m_pullup(mb_copy, i);
1776 if (mb_copy == NULL)
1782 ip_copy = mtod(mb_copy, struct ip *);
1798 mb_copy->m_data += sizeof(multicast_encap_iphdr);
1799 ip->ip_sum = in_cksum(mb_copy, ip->ip_hl << 2);
1800 mb_copy->m_data -= sizeof(multicast_encap_iphdr);
1803 tbf_send_packet(vifp, mb_copy);
1805 tbf_control(vifp, mb_copy, ip, ntohs(ip_copy->ip_len));
2728 struct mbuf *mb_copy, *mm;
2733 mb_copy = pim_register_prepare(ip, m);
2734 if (mb_copy == NULL)
2741 for (mm = mb_copy; mm; mm = mb_copy) {
2742 mb_copy = mm->m_nextpkt;
2767 struct mbuf *mb_copy = NULL;
2780 mb_copy = m_copypacket(m, M_DONTWAIT);
2781 if (mb_copy == NULL)
2783 mb_copy = m_pullup(mb_copy, ip->ip_hl << 2);
2784 if (mb_copy == NULL)
2788 ip = mtod(mb_copy, struct ip *);
2797 ip->ip_sum = in_cksum(mb_copy, ip->ip_hl << 2);
2800 if (ip_fragment(mb_copy, NULL, mtu) != 0) {
2801 /* XXX: mb_copy was freed by ip_fragment() */
2805 return mb_copy;
2813 struct mbuf *mb_copy, struct mfc *rt)
2828 m_freem(mb_copy);
2834 mb_first->m_next = mb_copy;
2868 struct mbuf *mb_copy, struct mfc *rt)
2877 m_freem(mb_copy);
2886 m_freem(mb_copy);
2891 mb_first->m_next = mb_copy;