| /freebsd-12-stable/sys/netinet/ |
| D | ip_fastfwd.c | 126 struct mbuf *mcopy = m_gethdr(M_NOWAIT, m->m_type); in ip_redir_alloc() local 128 if (mcopy == NULL) in ip_redir_alloc() 134 if (m_dup_pkthdr(mcopy, m, M_NOWAIT) == 0) { in ip_redir_alloc() 141 m_free(mcopy); in ip_redir_alloc() 144 mcopy->m_len = min(ntohs(ip->ip_len), M_TRAILINGSPACE(mcopy)); in ip_redir_alloc() 145 mcopy->m_pkthdr.len = mcopy->m_len; in ip_redir_alloc() 146 m_copydata(m, 0, mcopy->m_len, mtod(mcopy, caddr_t)); in ip_redir_alloc() 165 return (mcopy); in ip_redir_alloc() 216 struct mbuf *mcopy = NULL; in ip_tryforward() local 445 mcopy = ip_redir_alloc(m, ip, dest, &redest.s_addr); in ip_tryforward() [all …]
|
| D | ip_input.c | 959 struct mbuf *mcopy; in ip_forward() local 1012 mcopy = m_gethdr(M_NOWAIT, m->m_type); in ip_forward() 1013 if (mcopy != NULL && !m_dup_pkthdr(mcopy, m, M_NOWAIT)) { in ip_forward() 1020 m_free(mcopy); in ip_forward() 1021 mcopy = NULL; in ip_forward() 1023 if (mcopy != NULL) { in ip_forward() 1024 mcopy->m_len = min(ntohs(ip->ip_len), M_TRAILINGSPACE(mcopy)); in ip_forward() 1025 mcopy->m_pkthdr.len = mcopy->m_len; in ip_forward() 1026 m_copydata(m, 0, mcopy->m_len, mtod(mcopy, caddr_t)); in ip_forward() 1036 m_freem(mcopy); in ip_forward() [all …]
|
| /freebsd-12-stable/sys/netinet6/ |
| D | ip6_forward.c | 97 struct mbuf *mcopy = NULL; in ip6_forward() local 149 mcopy = m_copym(m, 0, imin(m->m_pkthdr.len, ICMPV6_PLD_MAXLEN), in ip6_forward() 160 m_freem(mcopy); in ip6_forward() 182 if (mcopy) { in ip6_forward() 183 icmp6_error(mcopy, ICMP6_DST_UNREACH, in ip6_forward() 225 if (mcopy) in ip6_forward() 226 icmp6_error(mcopy, ICMP6_DST_UNREACH, in ip6_forward() 363 if (mcopy) in ip6_forward() 364 icmp6_error(mcopy, ICMP6_PACKET_TOO_BIG, 0, in ip6_forward() 379 if (mcopy) in ip6_forward() [all …]
|
| /freebsd-12-stable/sys/net80211/ |
| D | ieee80211_wds.c | 243 struct mbuf *mcopy; in ieee80211_dwds_mcast() local 262 mcopy = m_copypacket(m, M_NOWAIT); in ieee80211_dwds_mcast() 263 if (mcopy == NULL) { in ieee80211_dwds_mcast() 272 m_freem(mcopy); in ieee80211_dwds_mcast() 276 if (ieee80211_classify(ni, mcopy)) { in ieee80211_dwds_mcast() 283 m_freem(mcopy); in ieee80211_dwds_mcast() 294 mcopy = ieee80211_encap(vap, ni, mcopy); in ieee80211_dwds_mcast() 295 if (mcopy == NULL) { in ieee80211_dwds_mcast() 301 mcopy->m_flags |= M_MCAST; in ieee80211_dwds_mcast() 302 mcopy->m_pkthdr.rcvif = (void *) ni; in ieee80211_dwds_mcast() [all …]
|
| D | ieee80211_mesh.c | 1074 struct mbuf *m, *mcopy, *next; in ieee80211_mesh_forward_to_gates() local 1119 mcopy = m_dup(m, 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, M_NOWAIT); in mesh_forward() [all …]
|
| D | ieee80211_input.c | 130 struct mbuf *mcopy; in ieee80211_input_mimo_all() local 149 mcopy = m_dup(m, M_NOWAIT); in ieee80211_input_mimo_all() 150 if (mcopy == NULL) { in ieee80211_input_mimo_all() 155 mcopy = m; in ieee80211_input_mimo_all() 159 type = ieee80211_input_mimo(ni, mcopy); in ieee80211_input_mimo_all()
|
| D | ieee80211_hostap.c | 386 struct mbuf *mcopy = NULL; in hostap_deliver_data() local 389 mcopy = m_dup(m, M_NOWAIT); in hostap_deliver_data() 390 if (mcopy == NULL) in hostap_deliver_data() 393 mcopy->m_flags |= M_MCAST; in hostap_deliver_data() 412 mcopy = m; in hostap_deliver_data() 422 if (mcopy != NULL) in hostap_deliver_data() 423 (void) ieee80211_vap_xmitpkt(vap, mcopy); in hostap_deliver_data()
|
| /freebsd-12-stable/contrib/file/src/ |
| D | softmagic.c | 60 private int mcopy(struct magic_set *, union VALUETYPE *, int, int, 1320 mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir, in mcopy() function 1594 if (mcopy(ms, p, m->type, m->flag & INDIR, s, in mget() 1772 if (mcopy(ms, p, m->type, 0, s, offset, nbytes, m) == -1) in mget()
|
| /freebsd-12-stable/tools/tools/nanobsd/embedded/ |
| D | common | 234 mcopy -i ${NANO_LOG}/_.${NANO_SLICE_FAT} ${NANO_FAT_DIR}/* :: 487 if [ ! -x /usr/local/bin/mcopy ]; then
|