| /xnu-11215/bsd/net/ |
| H A D | kpi_protocol.c | 226 mbuf_t packet; in proto_input_run() local 228 for (packet = packet_list; in proto_input_run() 229 packet != NULL; in proto_input_run() 230 packet = packet_list) { in proto_input_run() 232 mbuf_nextpkt(packet); in proto_input_run() 233 mbuf_setnextpkt(packet, NULL); in proto_input_run() 235 packet); in proto_input_run() 272 mbuf_t packet; in proto_input() local 274 for (packet = packet_list; packet != NULL; in proto_input() 275 packet = packet_list) { in proto_input() [all …]
|
| H A D | if_ether.h | 45 errno_t ether_demux(ifnet_t interface, mbuf_t packet, char* header, 51 errno_t ether_frameout(ifnet_t interface, mbuf_t *packet, 55 errno_t ether_frameout(ifnet_t interface, mbuf_t *packet, 60 errno_t ether_frameout_extended(ifnet_t interface, mbuf_t *packet,
|
| H A D | ether_inet6_pr_module.c | 111 mbuf_t packet, char *header) in ether_inet6_input() argument 128 mifp = mbuf_pkthdr_rcvif(packet); in ether_inet6_input() 141 ip6a = ip6_addaux(packet); in ether_inet6_input() 149 if (proto_input(protocol, packet) != 0) { in ether_inet6_input() 150 m_freem(packet); in ether_inet6_input() 153 m_freem(packet); in ether_inet6_input()
|
| H A D | kpi_protocol.h | 64 typedef void (*proto_input_handler)(protocol_family_t protocol, mbuf_t packet); 113 extern errno_t proto_input(protocol_family_t protocol, mbuf_t packet) 126 extern errno_t proto_inject(protocol_family_t protocol, mbuf_t packet)
|
| H A D | necp.h | 1471 extern necp_kernel_policy_id necp_get_policy_id_from_packet(struct mbuf *packet); 1472 extern necp_kernel_policy_id necp_get_skip_policy_id_from_packet(struct mbuf *packet); 1473 extern u_int16_t necp_get_packet_filter_tags_from_packet(struct mbuf *packet); 1474 extern bool necp_packet_should_skip_filters(struct mbuf *packet); 1475 extern u_int32_t necp_get_last_interface_index_from_packet(struct mbuf *packet); 1476 extern u_int32_t necp_get_route_rule_id_from_packet(struct mbuf *packet); 1477 extern int necp_get_app_uuid_from_packet(struct mbuf *packet, 1491 extern int necp_mark_packet_from_ip(struct mbuf *packet, necp_kernel_policy_id policy_id); 1493 extern int necp_mark_packet_from_interface(struct mbuf *packet, ifnet_t interface); 1500 extern int necp_mark_packet_as_keepalive(struct mbuf *packet, bool is_keepalive); [all …]
|
| H A D | if_ipsec.h | 49 errno_t ipsec_inject_inbound_packet(ifnet_t interface, mbuf_t packet); 51 void ipsec_set_pkthdr_for_interface(ifnet_t interface, mbuf_t packet, int family,
|
| H A D | necp.c | 13248 if (packet == NULL || !(packet->m_flags & M_PKTHDR)) { in necp_mark_packet_from_ip() 13265 if (packet == NULL || !(packet->m_flags & M_PKTHDR)) { in necp_mark_packet_from_ip_with_skip() 13287 if (packet == NULL || !(packet->m_flags & M_PKTHDR)) { in necp_mark_packet_from_interface() 13302 if (packet == NULL || !(packet->m_flags & M_PKTHDR)) { in necp_mark_packet_as_keepalive() 13318 if (packet == NULL || !(packet->m_flags & M_PKTHDR)) { in necp_get_policy_id_from_packet() 13328 if (packet == NULL || !(packet->m_flags & M_PKTHDR)) { in necp_get_skip_policy_id_from_packet() 13343 if (packet == NULL || !(packet->m_flags & M_PKTHDR)) { in necp_get_packet_filter_tags_from_packet() 13353 if (packet == NULL || !(packet->m_flags & M_PKTHDR)) { in necp_packet_should_skip_filters() 13364 if (packet == NULL || !(packet->m_flags & M_PKTHDR)) { in necp_get_last_interface_index_from_packet() 13374 if (packet == NULL || !(packet->m_flags & M_PKTHDR)) { in necp_get_route_rule_id_from_packet() [all …]
|
| H A D | network_agent.c | 232 size_t payload_length, mbuf_t packet, size_t offset); 238 size_t payload_length, mbuf_t packet, size_t offset); 244 size_t payload_length, mbuf_t packet, size_t offset); 587 if (mbuf_pkthdr_len(packet) < sizeof(header)) { in netagent_ctl_send() 589 mbuf_pkthdr_len(packet), sizeof(header)); in netagent_ctl_send() 604 packet, sizeof(header)); in netagent_ctl_send() 609 packet, sizeof(header)); in netagent_ctl_send() 614 packet, sizeof(header)); in netagent_ctl_send() 631 packet, sizeof(header)); in netagent_ctl_send() 643 mbuf_freem(packet); in netagent_ctl_send() [all …]
|
| H A D | kpi_interface.h | 378 typedef errno_t (*ifnet_demux_func)(ifnet_t interface, mbuf_t packet, 415 typedef errno_t (*ifnet_framer_func)(ifnet_t interface, mbuf_t *packet, 423 typedef errno_t (*ifnet_framer_extended_func)(ifnet_t interface, mbuf_t *packet, 522 mbuf_t packet, char *header); 543 mbuf_t packet); 566 mbuf_t *packet, const struct sockaddr *dest, void *route, char *frame_type, 1336 extern errno_t ifnet_enqueue(ifnet_t interface, mbuf_t packet); 1351 extern errno_t ifnet_dequeue(ifnet_t interface, mbuf_t *packet); 1369 mbuf_svc_class_t sc, mbuf_t *packet); 2332 protocol_family_t protocol_family, mbuf_t packet, void *route, [all …]
|
| H A D | bpf.h | 1539 mbuf_t packet); 1605 extern void bpf_tap_in(ifnet_t interface, u_int32_t dlt, mbuf_t packet, 1619 extern void bpf_tap_out(ifnet_t interface, u_int32_t dlt, mbuf_t packet, 1635 kern_packet_t packet, void *__sized_by(header_len) header, size_t header_len); 1649 kern_packet_t packet, void *__sized_by(header_len) header, size_t header_len);
|
| H A D | if_utun.c | 2746 mbuf_t *packet, in utun_framer() argument 2779 u_int8_t *header = mtod(*packet, uint8_t*); in utun_framer() 2909 __unused mbuf_t *packet, in utun_proto_pre_output() argument 2964 pcb->utun_input_chain = packet; in utun_pkt_input() 2967 while (packet->m_nextpkt) { in utun_pkt_input() 2968 VERIFY(packet != packet->m_nextpkt); in utun_pkt_input() 2969 packet = packet->m_nextpkt; in utun_pkt_input() 2972 pcb->utun_input_chain_last = packet; in utun_pkt_input() 2987 mbuf_pkthdr_setrcvif(packet, pcb->utun_ifp); in utun_pkt_input() 2994 mbuf_freem(packet); in utun_pkt_input() [all …]
|
| H A D | if_ipsec.c | 4063 __unused mbuf_t *packet, in ipsec_proto_pre_output() argument 4095 mbuf_t packet) in ipsec_inject_inbound_packet() argument 4121 pcb->ipsec_input_chain = packet; in ipsec_inject_inbound_packet() 4124 while (packet->m_nextpkt) { in ipsec_inject_inbound_packet() 4125 VERIFY(packet != packet->m_nextpkt); in ipsec_inject_inbound_packet() 4126 packet = packet->m_nextpkt; in ipsec_inject_inbound_packet() 4129 pcb->ipsec_input_chain_last = packet; in ipsec_inject_inbound_packet() 4159 if (packet != NULL && interface != NULL) { in ipsec_set_pkthdr_for_interface() 4167 packet->m_pkthdr.pkt_flowid = flowid; in ipsec_set_pkthdr_for_interface() 4172 struct ip *ip = mtod(packet, struct ip *); in ipsec_set_pkthdr_for_interface() [all …]
|
| /xnu-11215/bsd/netinet/ |
| H A D | flow_divert.c | 444 mbuf_freem(*packet); in flow_divert_packet_init() 445 *packet = NULL; in flow_divert_packet_init() 1485 mbuf_freem(packet); in flow_divert_send_connect_result() 1524 mbuf_free(packet); in flow_divert_send_close() 1619 if (packet != NULL) { in flow_divert_send_data_packet() 1620 mbuf_freem(packet); in flow_divert_send_data_packet() 1680 mbuf_freem(packet); in flow_divert_send_datagram_packet() 1991 mbuf_free(packet); in flow_divert_send_read_notification() 2022 mbuf_free(packet); in flow_divert_send_traffic_class_update() 3295 mbuf_freem(packet); in flow_divert_handle_flow_states_request() [all …]
|
| H A D | in_arp.h | 68 size_t ll_dest_len, route_t hint, mbuf_t packet); 73 size_t ll_dest_len, route_t hint, mbuf_t packet);
|
| H A D | ip_input.c | 730 ip = mtod(packet, struct ip*); in ip_chain_insert() 744 return packet; in ip_chain_insert() 1616 mbuf_ref_t packet = NULL; in ip_input_process_list() local 1657 for (packet = packet_list; packet; packet = packet_list) { in ip_input_process_list() 1661 mbuf_setnextpkt(packet, NULL); in ip_input_process_list() 1671 packet = modm; in ip_input_process_list() 1673 packet = ip_chain_insert(packet, &pktchain_tbl[0]); in ip_input_process_list() 1674 if (packet == NULL) { in ip_input_process_list() 1687 packet = modm; in ip_input_process_list() 1701 if (packet) { in ip_input_process_list() [all …]
|
| H A D | in_arp.c | 1284 mbuf_t packet) in arp_lookup_ip() argument 1329 if ((packet != NULL && (packet->m_flags & M_BCAST)) || in arp_lookup_ip() 1343 if ((packet != NULL && (packet->m_flags & M_MCAST)) || in arp_lookup_ip() 1502 if (packet != NULL) { in arp_lookup_ip() 1503 enqueued = arp_llinfo_addq(llinfo, packet); in arp_lookup_ip() 1572 if (packet != NULL && enqueued) { in arp_lookup_ip() 1578 VERIFY(pkt.cp_mbuf == packet); in arp_lookup_ip() 1595 if (packet != NULL && !enqueued) { in arp_lookup_ip() 1596 m_freem(packet); in arp_lookup_ip() 1597 packet = NULL; in arp_lookup_ip()
|
| /xnu-11215/bsd/skywalk/channel/ |
| H A D | os_channel.h | 460 os_channel_packet_alloc(const channel_t chd, packet_t *packet); 469 os_channel_large_packet_alloc(const channel_t chd, packet_t *packet); 478 os_channel_packet_free(const channel_t chd, packet_t packet); 485 const channel_slot_t slot, packet_t packet); 492 const channel_slot_t slot, packet_t packet); 635 const kern_channel_slot_t slot, kern_packet_t packet); 637 const kern_channel_slot_t slot, kern_packet_t packet);
|
| /xnu-11215/osfmk/kdp/ |
| H A D | kdp_serial.c | 56 kdp_serialize_packet(unsigned char *packet, unsigned int len, void (*outFunc)(char)) in kdp_serialize_packet() argument 63 crc = (uint32_t) z_crc32(0, packet, len); in kdp_serialize_packet() 72 byte = *packet++; in kdp_serialize_packet()
|
| H A D | kdp_udp.c | 386 kdp_send_data(void *packet, unsigned int len) in kdp_send_data() argument 389 (*kdp_en_send_pkt)(packet, len); in kdp_send_data() 394 kdp_receive_data(void *packet, unsigned int *len, unsigned int timeout) in kdp_receive_data() argument 397 (*kdp_en_recv_pkt)(packet, len, timeout); in kdp_receive_data() 2170 unsigned char *packet; in kdp_serial_receive() local 2172 if ((packet = kdp_unserialize_packet((unsigned char)readkar, rpkt_len))) { in kdp_serial_receive() 2173 memcpy(rpkt, packet, *rpkt_len); in kdp_serial_receive()
|
| /xnu-11215/bsd/skywalk/ |
| H A D | Makefile | 10 core channel mem nexus packet namespace 13 core channel mem nexus packet namespace
|
| /xnu-11215/bsd/skywalk/packet/ |
| H A D | os_packet.h | 857 typedef void (*alloc_cb_func_t)(kern_packet_t packet, uint32_t pkt_index, 865 const uint32_t bufcnt, kern_packet_t *packet); 873 const uint32_t bufcnt, kern_packet_t *packet);
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | pmap.py | 73 packet = "{0:016x}{1:08x}{2:04x}".format(addr_for_kdp, byte_count, 0x0) 77 ci.HandleCommand('process plugin packet send -c 25 -p {0}'.format(packet), ret_obj) 168 packet = "{0:016x}{1:08x}{2:04x}{3:016x}".format(addr_for_kdp, byte_count, 0x0, data_val) 172 ci.HandleCommand('process plugin packet send -c 26 -p {0}'.format(packet), ret_obj)
|
| /xnu-11215/bsd/conf/ |
| H A D | files | 606 bsd/skywalk/packet/packet_copy.c optional skywalk 607 bsd/skywalk/packet/packet_kern.c optional skywalk bound-checks 608 bsd/skywalk/packet/pbufpool.c optional skywalk bound-checks 609 bsd/skywalk/packet/pbufpool_kern.c optional skywalk bound-checks
|
| /xnu-11215/config/ |
| H A D | MASTER | 235 # set maximum space used for packet buffers 499 # packet filter device
|
| /xnu-11215/bsd/netinet6/ |
| H A D | nd6.h | 1008 size_t ll_dest_len, route_t hint, mbuf_t packet);
|