| /xnu-11417.140.69/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_qos.c | 83 (m_mtod_current(pkt->pkt_mbuf) + pkt->pkt_l2_len); in fsw_qos_set_pkt_dscp() 87 (m_mtod_current(pkt->pkt_mbuf) + pkt->pkt_l2_len); in fsw_qos_set_pkt_dscp()
|
| H A D | fsw_classq.c | 103 sk_dump("buf", m_mtod_current(m), m->m_len, 128, NULL, 0)); in fsw_classq_kpkt_to_mbuf()
|
| H A D | fsw_ip_frag.c | 422 bcopy(m_mtod_current(pkt->pkt_mbuf) + pkt->pkt_l2_len, in ipf_pkt2mbuf() 423 m_mtod_current(m), l3t_len); in ipf_pkt2mbuf() 428 bcopy(buf, m_mtod_current(m), l3t_len); in ipf_pkt2mbuf()
|
| H A D | fsw_ethernet.c | 533 void *buf = m_mtod_current(m) - FSW_ETHER_LEN_PADDED; in fsw_ethernet_frame()
|
| /xnu-11417.140.69/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_host.c | 636 if (pkt_hdr >= m_mtod_current(m0) && in get_l2_hlen() 637 pkt_hdr < m_mtod_current(m0) + m0->m_len) { in get_l2_hlen() 646 len += (pkt_hdr - m_mtod_current(m0)); in get_l2_hlen()
|
| H A D | nx_netif_gso.c | 138 len = (ph - m_mtod_current(m)); in netif_gso_get_frame_header_len() 568 state->tcp = (struct tcphdr *)(void *)(m_mtod_current(m) + in netif_gso_ip_tcp_init_state() 589 state->tcp = (struct tcphdr *)(void *)(m_mtod_current(m) + in netif_gso_ip_tcp_init_state()
|
| H A D | nx_netif_flow.c | 106 *buf = (uint8_t *)m_mtod_current(m); in netif_flow_get_buf_mbuf()
|
| /xnu-11417.140.69/bsd/netinet6/ |
| H A D | in6_cksum.c | 224 ip6 = (struct ip6_hdr *)m_mtod_current(m); in inet6_cksum()
|
| H A D | ipsec.c | 4918 bcopy(m_mtod_current(n) + copied, m_mtod_current(mm), len); in ipsec_copypkt() 5195 struct ip *ip = (__typeof__(ip))(void *)m_mtod_current(m); in ipsec_send_natt_keepalive() 5204 struct udphdr *uh = (__typeof__(uh))(void *)(m_mtod_current(m) + sizeof(*ip)); in ipsec_send_natt_keepalive() 5206 bzero(m_mtod_current(m), m->m_len); in ipsec_send_natt_keepalive() 5228 *(u_int8_t*)(m_mtod_current(m) + sizeof(*ip) + sizeof(*uh)) = 0xFF; in ipsec_send_natt_keepalive() 5254 struct ip6_hdr *ip6 = (__typeof__(ip6))m_mtod_current(m); in ipsec_send_natt_keepalive() 5263 struct udphdr *uh = (__typeof__(uh))(void *)(m_mtod_current(m) + sizeof(*ip6)); in ipsec_send_natt_keepalive() 5265 bzero(m_mtod_current(m), m->m_len); in ipsec_send_natt_keepalive() 5300 *(u_int8_t*)(m_mtod_current(m) + sizeof(*ip6) + sizeof(*uh)) = 0xFF; in ipsec_send_natt_keepalive()
|
| /xnu-11417.140.69/bsd/net/ |
| H A D | remote_vif.c | 537 if (mbuf_setdata(m, m_mtod_current(m) + pktap_hdr->pth_frame_pre_length, in rvi_bpf_tap() 540 mbuf_setdata(m, m_mtod_current(m) - pktap_hdr->pth_frame_pre_length, in rvi_bpf_tap()
|
| H A D | pktap.c | 1170 if (mbuf_setdata(m, m_mtod_current(m) + pre, m->m_len - pre) == 0) { in pktap_bpf_tap() 1172 mbuf_setdata(m, m_mtod_current(m) - pre, m->m_len + pre); in pktap_bpf_tap() 1320 if (mbuf_setdata(m, m_mtod_current(m) + data_adjust, m->m_len - data_adjust) == 0) { in pktap_bpf_tap() 1323 mbuf_setdata(m, m_mtod_current(m) - data_adjust, m->m_len + data_adjust); in pktap_bpf_tap()
|
| H A D | ndrv.c | 215 bcopy(frame_header, m_mtod_current(m), ifnet_hdrlen(ifp)); in ndrv_input()
|
| H A D | if_bond.c | 573 return m_mtod_current(buf) + sizeof(struct ether_header); in packet_buffer_byteptr() 1679 bondport_receive_lacpdu(p, (lacpdu_ref)m_mtod_current(m)); in bond_receive_lacpdu() 1722 marker_p = (la_marker_pdu_ref)(m_mtod_current(m) + ETHER_HDR_LEN); in bond_receive_la_marker_pdu()
|
| H A D | ntstat.c | 5654 bzero(m_mtod_current(msg), size); in nstat_client_send_description() 5783 bzero(m_mtod_current(msg), size); in nstat_client_send_update() 6206 bzero(m_mtod_current(msg), sizeof(nstat_msg_src_added)); in nstat_client_source_add()
|
| /xnu-11417.140.69/bsd/net/pktsched/ |
| H A D | pktsched.c | 662 if (((caddr_t)hdr >= m_mtod_current(m0)) && in pktsched_mbuf_mark_ecn() 663 ((caddr_t)hdr < m_mtod_current(m0) + m0->m_len)) { in pktsched_mbuf_mark_ecn()
|
| /xnu-11417.140.69/bsd/sys/ |
| H A D | mbuf.h | 129 #define mtod(m, t) ((t)(void *)m_mtod_current(m)) 1479 m_mtod_current(struct mbuf *m) in m_mtod_current() function 1488 return m_mtod_current(m) + m->m_len; in m_mtod_end()
|
| H A D | socketvar.h | 380 __DARWIN_ALIGN32(((struct cmsghdr *)(void *)m_mtod_current(m))->cmsg_len) ? \ 381 (struct cmsghdr *)(void *)m_mtod_current(m) : (struct cmsghdr * __header_bidi_indexable)0L)
|
| /xnu-11417.140.69/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_track.c | 787 bzero(m_mtod_current(m), len); in flow_track_abort_tcp() 964 bzero(m_mtod_current(m), len); in flow_track_abort_quic()
|
| H A D | flow_agg.c | 271 ASSERT(m_mtod_current(m) != NULL); in _mbuf_agg_log() 273 (uint8_t *)m_mtod_current(m), m->m_len, 128, NULL, 0)); in _mbuf_agg_log() 2404 pkt_copy(baddr, m_mtod_current(m), l2len); in flow_rx_agg_host() 2459 ((m_mtod_current(smbuf) - (caddr_t)(smbuf->m_pkthdr.pkt_hdr)) + MASK_SIZE))) { in flow_rx_agg_host()
|
| /xnu-11417.140.69/bsd/netinet/ |
| H A D | in_cksum.c | 255 ip = (struct ip *)(void *)(m_mtod_current(m)); in inet_cksum()
|
| H A D | udp_usrreq.c | 985 bcopy(m_mtod_current(m) + off, &uh, sizeof(uh)); in udp_ctlinput() 3119 bcopy(m_mtod_current(m), frame->data + frame_data_offset, in udp_fill_keepalive_offload_frames() 3193 bcopy(m_mtod_current(m), frame->data + frame_data_offset, m->m_len); in udp_fill_keepalive_offload_frames()
|
| H A D | ip_output.c | 2082 ip = (struct ip *)(void *)(m_mtod_current(m) + hoff); in in_finalize_cksum() 2241 if (m->m_flags & M_EXT || m_mtod_current(m) - optlen < m->m_pktdat) { in ip_insertoptions()
|
| /xnu-11417.140.69/bsd/skywalk/packet/ |
| H A D | packet_copy.c | 1480 dp = (uint8_t *)m_mtod_current(m); in pkt_copy_to_mbuf() 1548 dp = (uint8_t *)m_mtod_current(m); in pkt_copy_to_mbuf() 1693 dp = (uint8_t *)m_mtod_current(m); in pkt_copy_multi_buflet_to_mbuf() 1767 dp = (uint8_t *)m_mtod_current(m); in pkt_copy_multi_buflet_to_mbuf()
|
| /xnu-11417.140.69/bsd/kern/ |
| H A D | kpi_mbuf.c | 84 return m_mtod_current(mbuf); in mbuf_data()
|
| H A D | kern_control.c | 1210 bcopy((char *)data + curlen, m_mtod_current(n), mlen); in ctl_enqueuedata()
|