Home
last modified time | relevance | path

Searched refs:pkt_len (Results 1 – 16 of 16) sorted by relevance

/xnu-11215/bsd/kern/
H A Dnetboot.c269 int pkt_len; in get_root_path() local
275 pkt = IOBSDRegistryEntryGetData(entry, BSDP_RESPONSE, &pkt_len); in get_root_path()
276 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) { in get_root_path()
280 &pkt_len); in get_root_path()
281 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) { in get_root_path()
292 (void)dhcpol_parse_packet(&options, reply, pkt_len); in get_root_path()
439 int pkt_len; in get_ip_parameters() local
446 pkt = IOBSDRegistryEntryGetData(entry, DHCP_RESPONSE, &pkt_len); in get_ip_parameters()
447 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) { in get_ip_parameters()
451 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) { in get_ip_parameters()
[all …]
/xnu-11215/bsd/net/classq/
H A Dclassq.c188 uint32_t pkt_len = 0; in _getq() local
195 pkt_len = m_length(pkt->cp_mbuf); in _getq()
205 pkt_len = pkt->cp_kpkt->pkt_length; in _getq()
228 if (((int)qsize(q) - pkt_len) > 0) { in _getq()
229 qsize(q) -= pkt_len; in _getq()
239 uint32_t pkt_len = 0; in _getq_flow_or_scidx() local
259 pkt_len = m_length(m); in _getq_flow_or_scidx()
280 pkt_len = kp->pkt_length; in _getq_flow_or_scidx()
297 if (((int)qsize(q) - pkt_len) > 0) { in _getq_flow_or_scidx()
298 qsize(q) -= pkt_len; in _getq_flow_or_scidx()
/xnu-11215/osfmk/kdp/
H A Dkdp_en_debugger.h36 typedef void (*kdp_send_t)(void * pkt, unsigned int pkt_len);
37 typedef void (*kdp_receive_t)(void * pkt, unsigned int * pkt_len,
/xnu-11215/tests/
H A Dnet_bridge.c1099 u_int pkt_len, void * context);
1125 u_int pkt_len; in switch_port_receive() local
1130 pkt_len = bpf->bh_caplen; in switch_port_receive()
1562 __unused u_int pkt_len, in validate_not_present_dhost() argument
1575 __unused u_int pkt_len, in validate_broadcast_dhost() argument
1587 __unused u_int pkt_len, in validate_port_dhost() argument
1803 __unused u_int pkt_len, in validate_mac_nat() argument
1840 u_int pkt_len, void * context) in validate_mac_nat_arp_out() argument
1898 u_int pkt_len, void * context) in validate_mac_nat_arp_in() argument
2019 u_int pkt_len, void * context) in validate_mac_nat_dhcp() argument
[all …]
/xnu-11215/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c101 size_t pkt_len; /* remaining packet length left for parsing */ in flow_pkt_classify() local
168 pkt_len = pkt->pkt_length - pkt->pkt_l2_len; in flow_pkt_classify()
189 cls_len = (uint16_t)MIN(cls_len, pkt_len); in flow_pkt_classify()
190 VERIFY(pkt_len >= cls_len); in flow_pkt_classify()
221 CL_SKIP_ON(pkt_len < l3tlen); in flow_pkt_classify()
263 CL_SKIP_ON(pkt_len < l3tlen); in flow_pkt_classify()
/xnu-11215/tests/skywalk/
H A Dskt_netifdirect.c258 size_t pkt_len, buf_len, ip_plen, udp_data_len; in skt_netif_ipv6_udp_frame_process() local
275 pkt_len = os_packet_get_data_length(ph); in skt_netif_ipv6_udp_frame_process()
277 assert(pkt_len == (sizeof(*eth_hdr) + sizeof(*ip6_hdr) + ip_plen)); in skt_netif_ipv6_udp_frame_process()
281 assert(udp_data_len == (pkt_len - SKT_ETH_IPV6_UDP_HDR_LEN)); in skt_netif_ipv6_udp_frame_process()
411 uint16_t bdoff, pkt_len; in skt_netif_channel_receive() local
432 pkt_len = os_packet_get_data_length(pkt); in skt_netif_channel_receive()
434 assert(pkt_len == prop.sp_len); in skt_netif_channel_receive()
435 assert(pkt_len <= frame_length); in skt_netif_channel_receive()
440 port->port, pkt_len); in skt_netif_channel_receive()
H A Dskywalk_test_utils.c1921 size_t pkt_len, payload_len; in sktu_parse_ipv4_frame() local
1928 pkt_len = frame->len; in sktu_parse_ipv4_frame()
1929 assert(pkt_len == ntohs(ip->ip_len)); in sktu_parse_ipv4_frame()
1930 payload_len = pkt_len - sizeof(*ip); in sktu_parse_ipv4_frame()
1952 uint32_t pkt_len, payload_len; in sktu_parse_tcp4_frame() local
1961 pkt_len = frame->len; in sktu_parse_tcp4_frame()
1966 assert(pkt_len == ntohs(ip_tcp->ip.ip_len)); in sktu_parse_tcp4_frame()
1967 payload_len = pkt_len - sizeof(ip_tcp_header_t); in sktu_parse_tcp4_frame()
1998 size_t pkt_len, payload_len; in sktu_parse_udp4_frame() local
2007 pkt_len = frame->len; in sktu_parse_udp4_frame()
[all …]
H A Dskt_xfer.c819 pkt_len = os_packet_get_data_length(ph); in tcp_frame_process()
821 assert(ip_len <= pkt_len); in tcp_frame_process()
897 assert(ip_len <= pkt_len); in udp_frame_process()
963 size_t pkt_len, buf_len, data_len; in ip_frame_process() local
979 assert(pkt_len == ntohs(ip->ip_len)); in ip_frame_process()
980 data_len = pkt_len - sizeof(*ip); in ip_frame_process()
998 pkt_len -= buf_len; in ip_frame_process()
999 while (pkt_len != 0) { in ip_frame_process()
1011 pkt_len -= buf_len; in ip_frame_process()
1417 uint16_t pkt_len; in channel_port_receive() local
[all …]
H A Dskt_filter.c279 size_t pkt_len; in custom_ether_send() local
291 custom_ether_build_packet(buf, args, &pkt_len); in custom_ether_send()
293 error = os_buflet_set_data_length(buflet, pkt_len); in custom_ether_send()
/xnu-11215/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c360 size_t pkt_len; in fill_inet_td() local
368 pkt_len = pkt->pkt_length - pkt->pkt_l2_len; in fill_inet_td()
373 cls_len = (uint32_t)MIN(cls_len, pkt_len); in fill_inet_td()
374 VERIFY(pkt_len >= cls_len); in fill_inet_td()
410 if (pkt_len < l3tlen) { in fill_inet_td()
411 SK_ERR("pkt_len < l3tlen (%d < %d)", pkt_len, l3tlen); in fill_inet_td()
430 if (pkt_len < l3tlen) { in fill_inet_td()
431 SK_ERR("pkt_len < l3tlen (%d < %d)", pkt_len, l3tlen); in fill_inet_td()
507 DTRACE_SKYWALK5(classify__failed, struct ip *, iph, size_t, pkt_len, in fill_inet_td()
/xnu-11215/bsd/skywalk/nexus/netif/
H A Dnx_netif_host.c663 uint32_t pkt_len; in nx_netif_mbuf_to_kpkt_log() local
666 pkt_len = __packet_get_real_data_length(kpkt); in nx_netif_mbuf_to_kpkt_log()
671 sk_dump("buf", baddr, pkt_len, 128, NULL, 0)); in nx_netif_mbuf_to_kpkt_log()
/xnu-11215/bsd/skywalk/packet/
H A Dpacket_common.h1056 uint32_t pkt_len; in __packet_get_real_data_length() local
1062 pkt_len = kern_buflet_get_data_length(bft); in __packet_get_real_data_length()
1064 pkt_len = pkt->pkt_length; in __packet_get_real_data_length()
1066 return pkt_len; in __packet_get_real_data_length()
/xnu-11215/bsd/skywalk/nexus/flowswitch/
H A Dfsw_dp.c539 uint32_t pkt_len; in copy_packet_from_dev_log() local
542 pkt_len = __packet_get_real_data_length(dpkt); in copy_packet_from_dev_log()
548 sk_dump("buf", daddr, pkt_len, 128, NULL, 0)); in copy_packet_from_dev_log()
2659 uint32_t pkt_len; in dp_copy_to_dev_log() local
2662 pkt_len = __packet_get_real_data_length(dpkt); in dp_copy_to_dev_log()
2669 sk_dump("buf", daddr, pkt_len, 128, NULL, 0)); in dp_copy_to_dev_log()
3423 uint32_t pkt_len; in dp_tx_log_pkt() local
3426 pkt_len = __packet_get_real_data_length(pkt); in dp_tx_log_pkt()
3428 sk_proc_pid(current_proc()), desc, sk_dump("buf", pkt_buf, pkt_len, in dp_tx_log_pkt()
/xnu-11215/bsd/net/
H A Dif_fake.c3730 uint32_t pkt_len, offset = 0; in feth_add_mbuf_fcs() local
3736 pkt_len = m->m_pkthdr.len; in feth_add_mbuf_fcs()
3738 while (iter != NULL && offset < pkt_len) { in feth_add_mbuf_fcs()
3740 ASSERT(frag_len <= (pkt_len - offset)); in feth_add_mbuf_fcs()
/xnu-11215/bsd/netinet/
H A Dtcp_subr.c3676 tcp_pacer_get_packet_tx_time(struct tcpcb *tp, uint16_t pkt_len) in tcp_pacer_get_packet_tx_time() argument
3685 if (pkt_len == 0 || now == 0) { in tcp_pacer_get_packet_tx_time()
3691 tp->t_pacer.current_size = pkt_len; in tcp_pacer_get_packet_tx_time()
3693 tp->t_pacer.current_size += pkt_len; in tcp_pacer_get_packet_tx_time()
H A Dtcp_var.h1888 uint64_t tcp_pacer_get_packet_tx_time(struct tcpcb *tp, uint16_t pkt_len);