Home
last modified time | relevance | path

Searched refs:m_mtod_current (Results 1 – 25 of 33) sorted by relevance

12

/xnu-11417.140.69/bsd/skywalk/nexus/flowswitch/
H A Dfsw_qos.c83 (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 Dfsw_classq.c103 sk_dump("buf", m_mtod_current(m), m->m_len, 128, NULL, 0)); in fsw_classq_kpkt_to_mbuf()
H A Dfsw_ip_frag.c422 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 Dfsw_ethernet.c533 void *buf = m_mtod_current(m) - FSW_ETHER_LEN_PADDED; in fsw_ethernet_frame()
/xnu-11417.140.69/bsd/skywalk/nexus/netif/
H A Dnx_netif_host.c636 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 Dnx_netif_gso.c138 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 Dnx_netif_flow.c106 *buf = (uint8_t *)m_mtod_current(m); in netif_flow_get_buf_mbuf()
/xnu-11417.140.69/bsd/netinet6/
H A Din6_cksum.c224 ip6 = (struct ip6_hdr *)m_mtod_current(m); in inet6_cksum()
H A Dipsec.c4918 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 Dremote_vif.c537 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 Dpktap.c1170 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 Dndrv.c215 bcopy(frame_header, m_mtod_current(m), ifnet_hdrlen(ifp)); in ndrv_input()
H A Dif_bond.c573 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 Dntstat.c5654 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 Dpktsched.c662 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 Dmbuf.h129 #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 Dsocketvar.h380 __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 Dflow_track.c787 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 Dflow_agg.c271 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 Din_cksum.c255 ip = (struct ip *)(void *)(m_mtod_current(m)); in inet_cksum()
H A Dudp_usrreq.c985 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 Dip_output.c2082 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 Dpacket_copy.c1480 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 Dkpi_mbuf.c84 return m_mtod_current(mbuf); in mbuf_data()
H A Dkern_control.c1210 bcopy((char *)data + curlen, m_mtod_current(n), mlen); in ctl_enqueuedata()

12