Lines Matching defs:mcopy
932 struct mbuf *mcopy;
1008 mcopy = m_gethdr(M_NOWAIT, m->m_type);
1009 if (mcopy != NULL && !m_dup_pkthdr(mcopy, m, M_NOWAIT)) {
1016 m_free(mcopy);
1017 mcopy = NULL;
1019 if (mcopy != NULL) {
1020 mcopy->m_len = min(ntohs(ip->ip_len), M_TRAILINGSPACE(mcopy));
1021 mcopy->m_pkthdr.len = mcopy->m_len;
1022 m_copydata(m, 0, mcopy->m_len, mtod(mcopy, caddr_t));
1079 if (mcopy)
1080 m_freem(mcopy);
1086 if (mcopy == NULL) {
1116 mtu = ip_ipsec_mtu(mcopy, mtu);
1139 m_freem(mcopy);
1146 icmp_error(mcopy, type, code, dest.s_addr, mtu);