Home
last modified time | relevance | path

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

12

/xnu-12377.41.6/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.c98 sk_dump("buf", m_mtod_current(m), m->m_len, 128)); in fsw_classq_kpkt_to_mbuf()
H A Dfsw_ip_frag.c446 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 Dfsw_ethernet.c534 void *buf = m_mtod_current(m) - FSW_ETHER_LEN_PADDED; in fsw_ethernet_frame()
/xnu-12377.41.6/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()
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 Dnx_netif_flow.c106 *buf = (uint8_t *)m_mtod_current(m); in netif_flow_get_buf_mbuf()
/xnu-12377.41.6/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-12377.41.6/bsd/net/
H A Dremote_vif.c539 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 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()
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 Dndrv.c215 bcopy(frame_header, m_mtod_current(m), ifnet_hdrlen(ifp)); in ndrv_input()
H A Dif_bond.c574 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 Dntstat.c6154 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 Dpktsched.c718 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 Dflow_track.c792 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 Dflow_agg.c271 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 Dsocketvar.h371 __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 Dmbuf.h130 #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 Din_cksum.c255 ip = (struct ip *)(void *)(m_mtod_current(m)); in inet_cksum()
H A Dudp_usrreq.c1029 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 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-12377.41.6/bsd/skywalk/packet/
H A Dpacket_copy.c1517 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 Dkpi_mbuf.c85 return m_mtod_current(mbuf); in mbuf_data()
99 buf = m_mtod_current(mbuf); in mbuf_data_len()
H A Duipc_mbuf.c3487 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()

12