| /xnu-12377.41.6/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 | 98 sk_dump("buf", m_mtod_current(m), m->m_len, 128)); in fsw_classq_kpkt_to_mbuf()
|
| H A D | fsw_ip_frag.c | 446 bcopy(m_mtod_current(pkt->pkt_mbuf) + pkt->pkt_l2_len, in ipf_pkt2mbuf() 447 m_mtod_current(m), l3t_len); in ipf_pkt2mbuf() 452 bcopy(buf, m_mtod_current(m), l3t_len); in ipf_pkt2mbuf()
|
| H A D | fsw_ethernet.c | 534 void *buf = m_mtod_current(m) - FSW_ETHER_LEN_PADDED; in fsw_ethernet_frame()
|
| /xnu-12377.41.6/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() 567 state->tcp = (struct tcphdr *)(void *)(m_mtod_current(m) + in netif_gso_ip_tcp_init_state() 588 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-12377.41.6/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-12377.41.6/bsd/net/ |
| H A D | remote_vif.c | 539 if (mbuf_setdata(m, m_mtod_current(m) + pktap_hdr->pth_frame_pre_length, in rvi_bpf_tap() 542 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() 1325 if (mbuf_setdata(m, m_mtod_current(m) + data_adjust, m->m_len - data_adjust) == 0) { in pktap_bpf_tap() 1328 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 | 574 return m_mtod_current(buf) + sizeof(struct ether_header); in packet_buffer_byteptr() 1680 bondport_receive_lacpdu(p, (lacpdu_ref)m_mtod_current(m)); in bond_receive_lacpdu() 1723 marker_p = (la_marker_pdu_ref)(m_mtod_current(m) + ETHER_HDR_LEN); in bond_receive_la_marker_pdu()
|
| H A D | ntstat.c | 6154 bzero(m_mtod_current(msg), size); in nstat_client_send_description() 6283 bzero(m_mtod_current(msg), size); in nstat_client_send_update() 6420 bzero(m_mtod_current(msg), size); in nstat_client_send_details() 6965 bzero(m_mtod_current(msg), sizeof(nstat_msg_src_added)); in nstat_client_source_add()
|
| /xnu-12377.41.6/bsd/net/pktsched/ |
| H A D | pktsched.c | 718 if (((caddr_t)hdr >= m_mtod_current(m0)) && in pktsched_mbuf_mark_ecn() 719 ((caddr_t)hdr < m_mtod_current(m0) + m0->m_len)) { in pktsched_mbuf_mark_ecn()
|
| /xnu-12377.41.6/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_track.c | 792 bzero(m_mtod_current(m), len); in flow_track_abort_tcp() 969 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)); in _mbuf_agg_log() 2405 pkt_copy(baddr, m_mtod_current(m), l2len); in flow_rx_agg_host() 2460 ((m_mtod_current(smbuf) - (caddr_t)(smbuf->m_pkthdr.pkt_hdr)) + MASK_SIZE))) { in flow_rx_agg_host()
|
| /xnu-12377.41.6/bsd/sys/ |
| H A D | socketvar.h | 371 __DARWIN_ALIGN32(((struct cmsghdr *)(void *)m_mtod_current(m))->cmsg_len) ? \ 372 (struct cmsghdr *)(void *)m_mtod_current(m) : (struct cmsghdr * __header_bidi_indexable)0L)
|
| H A D | mbuf.h | 130 #define mtod(m, t) ((t)(void *)m_mtod_current(m)) 1521 m_mtod_current(struct mbuf *m) in m_mtod_current() function 1530 return m_mtod_current(m) + m->m_len; in m_mtod_end()
|
| /xnu-12377.41.6/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 | 1029 bcopy(m_mtod_current(m) + off, &uh, sizeof(uh)); in udp_ctlinput() 3134 bcopy(m_mtod_current(m), frame->data + frame_data_offset, in udp_fill_keepalive_offload_frames() 3208 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-12377.41.6/bsd/skywalk/packet/ |
| H A D | packet_copy.c | 1517 dp = (uint8_t *)m_mtod_current(m); in pkt_copy_to_mbuf() 1589 dp = (uint8_t *)m_mtod_current(m); in pkt_copy_to_mbuf() 1742 dp = (uint8_t *)m_mtod_current(m); in pkt_copy_multi_buflet_to_mbuf() 1820 dp = (uint8_t *)m_mtod_current(m); in pkt_copy_multi_buflet_to_mbuf()
|
| /xnu-12377.41.6/bsd/kern/ |
| H A D | kpi_mbuf.c | 85 return m_mtod_current(mbuf); in mbuf_data() 99 buf = m_mtod_current(mbuf); in mbuf_data_len()
|
| H A D | uipc_mbuf.c | 3487 m_mtod_current(n) >= m_mtod_upper_bound(n)) { in m_pullup() 3499 len < m_mtod_upper_bound(n) - m_mtod_current(n) && n->m_next != NULL) { in m_pullup() 4448 return m_mtod_current(m); in m_mtod()
|