| /src/sys/netinet/ |
| H A D | ip_fastfwd.c | 116 struct mbuf *mcopy; in ip_redir_alloc() local 173 mcopy = m_gethdr(M_NOWAIT, m->m_type); in ip_redir_alloc() 174 if (mcopy == NULL) in ip_redir_alloc() 177 if (m_dup_pkthdr(mcopy, m, M_NOWAIT) == 0) { in ip_redir_alloc() 184 m_free(mcopy); in ip_redir_alloc() 187 mcopy->m_len = min(ip_len, M_TRAILINGSPACE(mcopy)); in ip_redir_alloc() 188 mcopy->m_pkthdr.len = mcopy->m_len; in ip_redir_alloc() 189 m_copydata(m, 0, mcopy->m_len, mtod(mcopy, caddr_t)); in ip_redir_alloc() 191 return (mcopy); in ip_redir_alloc() 248 struct mbuf *mcopy = NULL; in ip_tryforward() local [all …]
|
| H A D | ip_input.c | 934 struct mbuf *mcopy; in ip_forward() local 996 mcopy = m_gethdr(M_NOWAIT, m->m_type); in ip_forward() 997 if (mcopy != NULL && !m_dup_pkthdr(mcopy, m, M_NOWAIT)) { in ip_forward() 1004 m_free(mcopy); in ip_forward() 1005 mcopy = NULL; in ip_forward() 1007 if (mcopy != NULL) { in ip_forward() 1008 mcopy->m_len = min(ntohs(ip->ip_len), M_TRAILINGSPACE(mcopy)); in ip_forward() 1009 mcopy->m_pkthdr.len = mcopy->m_len; in ip_forward() 1010 m_copydata(m, 0, mcopy->m_len, mtod(mcopy, caddr_t)); in ip_forward() 1021 m_freem(mcopy); in ip_forward() [all …]
|
| /src/sys/netinet6/ |
| H A D | ip6_forward.c | 100 struct mbuf *mcopy = NULL; in ip6_forward() local 152 mcopy = m_copym(m, 0, imin(m->m_pkthdr.len, ICMPV6_PLD_MAXLEN), in ip6_forward() 163 m_freem(mcopy); in ip6_forward() 194 if (mcopy) { in ip6_forward() 195 icmp6_error(mcopy, ICMP6_DST_UNREACH, in ip6_forward() 203 if (mcopy != NULL) { in ip6_forward() 205 icmp6_error(mcopy, ICMP6_DST_UNREACH, in ip6_forward() 208 m_freem(mcopy); in ip6_forward() 237 if (mcopy) in ip6_forward() 238 icmp6_error(mcopy, ICMP6_DST_UNREACH, in ip6_forward() [all …]
|
| /src/sys/net80211/ |
| H A D | ieee80211_wds.c | 236 struct mbuf *mcopy; in ieee80211_dwds_mcast() local 255 mcopy = m_copypacket(m, IEEE80211_M_NOWAIT); in ieee80211_dwds_mcast() 256 if (mcopy == NULL) { in ieee80211_dwds_mcast() 265 m_freem(mcopy); in ieee80211_dwds_mcast() 269 if (ieee80211_classify(ni, mcopy)) { in ieee80211_dwds_mcast() 276 m_freem(mcopy); in ieee80211_dwds_mcast() 287 mcopy = ieee80211_encap(vap, ni, mcopy); in ieee80211_dwds_mcast() 288 if (mcopy == NULL) { in ieee80211_dwds_mcast() 294 mcopy->m_flags |= M_MCAST; in ieee80211_dwds_mcast() 295 MPASS((mcopy->m_pkthdr.csum_flags & CSUM_SND_TAG) == 0); in ieee80211_dwds_mcast() [all …]
|
| H A D | ieee80211_mesh.c | 1074 struct mbuf *m, *mcopy, *next; in ieee80211_mesh_forward_to_gates() local 1119 mcopy = m_dup(m, IEEE80211_M_NOWAIT); in ieee80211_mesh_forward_to_gates() 1120 for (; mcopy != NULL; mcopy = next) { in ieee80211_mesh_forward_to_gates() 1121 next = mcopy->m_nextpkt; in ieee80211_mesh_forward_to_gates() 1122 mcopy->m_nextpkt = NULL; in ieee80211_mesh_forward_to_gates() 1125 "flush queued frame %p len %d", mcopy, in ieee80211_mesh_forward_to_gates() 1126 mcopy->m_pkthdr.len); in ieee80211_mesh_forward_to_gates() 1127 mesh_transmit_to_gate(vap, mcopy, rt_gate); in ieee80211_mesh_forward_to_gates() 1149 struct mbuf *mcopy; in mesh_forward() local 1175 mcopy = m_dup(m, IEEE80211_M_NOWAIT); in mesh_forward() [all …]
|
| H A D | ieee80211_input.c | 129 struct mbuf *mcopy; in ieee80211_input_mimo_all() local 148 mcopy = m_dup(m, IEEE80211_M_NOWAIT); in ieee80211_input_mimo_all() 149 if (mcopy == NULL) { in ieee80211_input_mimo_all() 154 mcopy = m; in ieee80211_input_mimo_all() 158 type = ieee80211_input_mimo(ni, mcopy); in ieee80211_input_mimo_all()
|
| H A D | ieee80211_hostap.c | 378 struct mbuf *mcopy = NULL; in hostap_deliver_data() local 381 mcopy = m_dup(m, IEEE80211_M_NOWAIT); in hostap_deliver_data() 382 if (mcopy == NULL) in hostap_deliver_data() 385 mcopy->m_flags |= M_MCAST; in hostap_deliver_data() 404 mcopy = m; in hostap_deliver_data() 414 if (mcopy != NULL) in hostap_deliver_data() 415 (void) ieee80211_vap_xmitpkt(vap, mcopy); in hostap_deliver_data()
|
| /src/tools/tools/nanobsd/embedded/ |
| H A D | common | 216 mcopy -s -i ${NANO_LOG}/_.${NANO_SLICE_FAT} ${NANO_FAT_DIR}/* :: 464 if [ ! -x /usr/local/bin/mcopy ]; then
|
| /src/contrib/file/src/ |
| H A D | softmagic.c | 62 file_private int mcopy(struct magic_set *, union VALUETYPE *, int, int, 1323 mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir, in mcopy() function 1615 if (mcopy(ms, p, m->type, m->flag & INDIR, s, in mget() 1808 if (mcopy(ms, p, m->type, 0, s, offset, nbytes, m) == -1) in mget()
|