| /xnu-11417.121.6/tests/skywalk/ |
| H A D | skt_listener.c | 51 struct sktc_nexus_handles handles; variable 104 error = __os_nexus_flow_del(handles.controller, handles.fsw_nx_uuid, in skt_listener_cleanup() 120 bzero(&handles, sizeof(handles)); in skt_listener_main() 121 strlcpy(handles.netif_ifname, ifname, sizeof(handles.netif_ifname)); in skt_listener_main() 122 handles.netif_addr = our_ip; in skt_listener_main() 123 handles.netif_mask = our_mask; in skt_listener_main() 124 sktc_create_flowswitch_no_address(&handles, -1, -1, -1, -1, 0); in skt_listener_main() 130 listener = sktu_create_nexus_flow(&handles, AF_INET, &zero_ip, &zero_ip, IPPROTO_TCP, 0, 0); in skt_listener_main() 136 no_flow = sktu_create_nexus_flow(&handles, AF_INET, &zero_ip, &zero_ip, IPPROTO_TCP, our_port, 0); in skt_listener_main() 140 no_flow = sktu_create_nexus_flow(&handles, AF_INET, &our_ip, &zero_ip, IPPROTO_TCP, our_port, 0); in skt_listener_main() [all …]
|
| H A D | skt_flow.c | 50 struct sktc_nexus_handles handles; variable 59 flow = sktu_create_nexus_flow(&handles, af, src, dst, protocol, sport, dport); in skt_flow_add_del() 91 regular_flow_0 = sktu_create_nexus_flow(&handles, af, src, dst, in skt_flow_req_low_latency() 98 regular_flow_1 = sktu_create_nexus_flow(&handles, af, src, dst, in skt_flow_req_low_latency() 109 low_latency_flow_0 = sktu_create_nexus_low_latency_flow(&handles, in skt_flow_req_low_latency() 120 low_latency_flow_1 = sktu_create_nexus_low_latency_flow(&handles, in skt_flow_req_low_latency() 142 bzero(&handles, sizeof(handles)); in skt_flow_req_ll_main() 143 strlcpy(handles.netif_ifname, ifname, sizeof(handles.netif_ifname)); in skt_flow_req_ll_main() 144 handles.netif_addr = our_ip; in skt_flow_req_ll_main() 145 handles.netif_mask = our_mask; in skt_flow_req_ll_main() [all …]
|
| H A D | skt_flowswitch_ns_reserve.c | 114 skt_flowswitch_ns_bsd(struct sktc_nexus_handles *handles, int proto, void *addr) in skt_flowswitch_ns_bsd() argument 204 (void) inet_ntop(AF_INET, &handles->netif_addr, buf0, in skt_flowswitch_ns_bsd() 208 (void) inet_ntop(AF_INET6, &handles->netif_addr6, buf0, in skt_flowswitch_ns_bsd() 216 "(flow %s)\n", handles->netif_ifname, buf0, buf1, in skt_flowswitch_ns_bsd() 218 error = __os_nexus_flow_add(handles->controller, in skt_flowswitch_ns_bsd() 219 handles->fsw_nx_uuid, &nfr); in skt_flowswitch_ns_bsd() 224 "(flow %s)\n", handles->netif_ifname, buf0, in skt_flowswitch_ns_bsd() 226 error = __os_nexus_flow_add(handles->controller, in skt_flowswitch_ns_bsd() 227 handles->fsw_nx_uuid, &nfr); in skt_flowswitch_ns_bsd() 236 skt_flowswitch_ns_sky(struct sktc_nexus_handles *handles, int proto, void *addr) in skt_flowswitch_ns_sky() argument [all …]
|
| H A D | skt_mpprotons.c | 50 static struct sktc_nexus_handles handles; variable 61 flow = sktu_create_nexus_flow(&handles, af, src, dst, protocol, sport, dport); in skt_flow_req_should_succeed() 71 flow = sktu_create_nexus_flow(&handles, af, src, dst, protocol, sport, dport); in skt_flow_req_should_fail() 85 bzero(&handles, sizeof(handles)); in skt_protons_main() 86 strlcpy(handles.netif_ifname, ifname, sizeof(handles.netif_ifname)); in skt_protons_main() 87 handles.netif_addr = our_ip; in skt_protons_main() 88 handles.netif_mask = our_mask; in skt_protons_main() 89 sktc_create_flowswitch_no_address(&handles, -1, -1, -1, -1, 0); in skt_protons_main() 102 sktc_cleanup_flowswitch(&handles); in skt_protons_main() 160 bzero(&handles, sizeof(handles)); in skt_mpprotons_main() [all …]
|
| H A D | skt_manyflows.c | 78 struct sktc_nexus_handles handles; in skt_manyflows_common() local 79 sktc_create_flowswitch(&handles, 0); in skt_manyflows_common() 83 …do_flows(handles.controller, handles.fsw_nx_uuid, NEXUS_PORT_FLOW_SWITCH_CLIENT, nports, nflows_pe… in skt_manyflows_common() 84 undo_flows(handles.controller, handles.fsw_nx_uuid, sizeof(flows) / sizeof(flows[0]), flows); in skt_manyflows_common() 86 sktc_cleanup_flowswitch(&handles); in skt_manyflows_common() 170 struct sktc_nexus_handles handles; in skt_mf1xall_common() local 171 sktc_create_flowswitch(&handles, 0); in skt_mf1xall_common() 180 error = sktc_bind_tcp4_flow(handles.controller, handles.fsw_nx_uuid, in skt_mf1xall_common() 203 error = sktc_bind_tcp4_flow(handles.controller, handles.fsw_nx_uuid, in skt_mf1xall_common() 212 error = sktc_unbind_flow(handles.controller, handles.fsw_nx_uuid, flows[i]); in skt_mf1xall_common() [all …]
|
| H A D | skt_flowlookup.c | 59 static struct sktc_nexus_handles handles; variable 104 …flow = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, &our_ip, &dst_ip, IPPROTO_T… in test_tcp_flow_send() 148 …flow = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, &our_ip, &dst_ip, IPPROTO_T… in test_tcp_flow_receive() 183 …listener = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, any_src_ip ? &zero_ip :… in test_tcp_flow_listen() 205 …connection = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, &our_ip, &dst_ip, IPP… in test_tcp_flow_listen() 237 …listener = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET6, &zero_ip_v6, &zero_ip_… in test_tcp_flow_listen_v6() 259 …connection = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, &our_ip, &dst_ip, IPP… in test_tcp_flow_listen_v6() 292 …ip_flow = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, &our_ip, &dst_ip, IPPROT… in test_ip_flow_send() 318 …ip_flow = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, &our_ip, &dst_ip, IPPROT… in test_ip_flow_receive() 344 …ip_listener = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, any_src_ip ? &zero_i… in test_ip_flow_listen() [all …]
|
| H A D | skt_fswbinds.c | 50 struct sktc_nexus_handles handles; in skt_fswbind_common() local 56 sktc_create_flowswitch(&handles, 0); in skt_fswbind_common() 75 error = __os_nexus_flow_add(handles.controller, handles.fsw_nx_uuid, &nfr); in skt_fswbind_common() 107 error = __os_nexus_flow_add(handles.controller, handles.fsw_nx_uuid, &nfr); in skt_fswbind_common() 125 error = __os_nexus_flow_del(handles.controller, handles.fsw_nx_uuid, &nfr); in skt_fswbind_common() 132 error = __os_nexus_flow_del(handles.controller, handles.fsw_nx_uuid, &nfr); in skt_fswbind_common() 136 sktc_cleanup_flowswitch(&handles); in skt_fswbind_common()
|
| H A D | skt_restricted_port.c | 62 struct sktc_nexus_handles handles; in skt_reserve_restricted_port() local 63 sktc_create_flowswitch(&handles, 0); in skt_reserve_restricted_port() 69 error = sktc_bind_tcp4_flow(handles.controller, handles.fsw_nx_uuid, in skt_reserve_restricted_port() 75 sktc_cleanup_flowswitch(&handles); in skt_reserve_restricted_port()
|
| H A D | skt_mangle.c | 69 struct sktc_nexus_handles handles; member 412 bzero(&ctx.handles, sizeof(ctx.handles)); in skt_mangle_verify_internalize_metadata_main() 413 strlcpy(ctx.handles.netif_ifname, utun_ifname, in skt_mangle_verify_internalize_metadata_main() 414 sizeof(ctx.handles.netif_ifname)); in skt_mangle_verify_internalize_metadata_main() 415 ctx.handles.netif_addr = ctx.our_ip; in skt_mangle_verify_internalize_metadata_main() 416 ctx.handles.netif_mask = mask; in skt_mangle_verify_internalize_metadata_main() 417 sktc_create_flowswitch_no_address(&ctx.handles, -1, -1, -1, -1, 0); in skt_mangle_verify_internalize_metadata_main() 420 os_nexus_controller_bind_provider_instance(ctx.handles.controller, in skt_mangle_verify_internalize_metadata_main() 421 ctx.handles.fsw_nx_uuid, 3, getpid(), NULL, NULL, 0, in skt_mangle_verify_internalize_metadata_main() 425 sktu_channel_port_init(&ctx.port, ctx.handles.fsw_nx_uuid, 3, true, in skt_mangle_verify_internalize_metadata_main() [all …]
|
| H A D | skt_xfer.c | 135 static struct sktc_nexus_handles handles; variable 2495 get_qset_id_from_llinks(struct sktc_nexus_handles *handles, uint64_t *qset_id) in get_qset_id_from_llinks() argument 2507 err = __os_nexus_get_llink_info(handles->controller, in get_qset_id_from_llinks() 2508 handles->netif_nx_uuid, nlir, len); in get_qset_id_from_llinks() 2552 setup_flowswitch_and_flow(struct sktc_nexus_handles * handles, in setup_flowswitch_and_flow() argument 2562 bzero(handles, sizeof(*handles)); in setup_flowswitch_and_flow() 2563 strlcpy(handles->netif_ifname, ifname, sizeof(handles->netif_ifname)); in setup_flowswitch_and_flow() 2564 handles->netif_addr = our_ip; in setup_flowswitch_and_flow() 2565 handles->netif_mask = our_mask; in setup_flowswitch_and_flow() 2566 sktc_create_flowswitch_no_address(handles, tx_ring_size, in setup_flowswitch_and_flow() [all …]
|
| H A D | skt_netifdirect.c | 107 static struct sktc_nexus_handles handles; variable 127 struct sktc_nexus_handles *handles, in skt_add_netif_ipv6_flow() argument 156 error = __os_nexus_flow_add(handles->controller, in skt_add_netif_ipv6_flow() 157 handles->netif_nx_uuid, &nfr); in skt_add_netif_ipv6_flow() 166 skt_setup_netif_with_ipv6_flow(struct sktc_nexus_handles *handles, in skt_setup_netif_with_ipv6_flow() argument 170 bzero(handles, sizeof(*handles)); in skt_setup_netif_with_ipv6_flow() 171 strlcpy(handles->netif_ifname, ifname, sizeof(handles->netif_ifname)); in skt_setup_netif_with_ipv6_flow() 172 handles->controller = os_nexus_controller_create(); in skt_setup_netif_with_ipv6_flow() 173 assert(handles->controller != NULL); in skt_setup_netif_with_ipv6_flow() 174 handles->netif_ip6_addr = *our_ip; in skt_setup_netif_with_ipv6_flow() [all …]
|
| H A D | skywalk_test_utils.c | 576 sktc_create_flowswitch_no_address(struct sktc_nexus_handles *handles, in sktc_create_flowswitch_no_address() argument 590 if (handles->netif_ifname[0] == '\0') { in sktc_create_flowswitch_no_address() 595 if (strlen(handles->netif_ifname) >= IFNAMSIZ) { in sktc_create_flowswitch_no_address() 597 __func__, handles->netif_ifname); in sktc_create_flowswitch_no_address() 600 handles->controller = os_nexus_controller_create(); in sktc_create_flowswitch_no_address() 601 if (handles->controller == NULL) { in sktc_create_flowswitch_no_address() 608 snprintf(buf, sizeof(buf), "ms_fsw_%s", handles->netif_ifname); in sktc_create_flowswitch_no_address() 611 sktc_build_nexus(handles->controller, &attr, &handles->fsw_prov_uuid, in sktc_create_flowswitch_no_address() 612 &handles->fsw_nx_uuid); in sktc_create_flowswitch_no_address() 615 if (!sktc_get_netif_nexus(handles->netif_ifname, in sktc_create_flowswitch_no_address() [all …]
|
| H A D | skywalk_test_utils.h | 229 void sktc_create_flowswitch(struct sktc_nexus_handles *handles, int i); 230 void sktc_create_flowswitch_no_address(struct sktc_nexus_handles *handles, 233 void sktc_nexus_handles_assign_address(struct sktc_nexus_handles *handles); 235 void sktc_cleanup_flowswitch(struct sktc_nexus_handles *handles);
|
| /xnu-11417.121.6/osfmk/kern/ |
| H A D | ext_paniclog.c | 160 LIST_INSERT_HEAD(&ext_paniclog_handle_list, handle, handles); in ext_paniclog_handle_set_active() 181 LIST_REMOVE(handle, handles); in ext_paniclog_handle_set_inactive() 307 LIST_FOREACH(tmp, &ext_paniclog_handle_list, handles) { in ext_paniclog_get_size_required() 366 LIST_FOREACH(tmp, &ext_paniclog_handle_list, handles) { in ext_paniclog_write_panicdata() 394 ext_paniclog_create_multiple_handles(ext_paniclog_handle_t *handles[], const char *data_id[], char … in ext_paniclog_create_multiple_handles() argument 411 handles[i] = handle; in ext_paniclog_create_multiple_handles() 431 ext_paniclog_handle_t *handles[2] = {0}; in ext_paniclog_multiple_handles_panic_test() local 439 ext_paniclog_create_multiple_handles(handles, data_id, data); in ext_paniclog_multiple_handles_panic_test() 455 ext_paniclog_handle_t *handles[2] = {0}; in ext_paniclog_multiple_handles_test() local 461 ret = ext_paniclog_create_multiple_handles(handles, data_id, data); in ext_paniclog_multiple_handles_test() [all …]
|
| H A D | ext_paniclog.h | 91 LIST_ENTRY(ext_paniclog_handle) handles;
|
| /xnu-11417.121.6/tests/sched/ |
| H A D | sched_test_utils.c | 460 static struct trace_handle handles[MAX_TRACES]; variable 487 struct trace_handle *handle = &handles[i]; in atend_trace_cleanup() 553 struct trace_handle *handle = &handles[handle_ind++]; in begin_collect_trace_fmt()
|
| /xnu-11417.121.6/osfmk/mach/ |
| H A D | mach_voucher_attr_control.defs | 50 /* Create a new voucher with the control's privilege (to directly assign value-handles) */
|
| H A D | mach_exc.defs | 172 * Same as identity_protected above, but also handles an in/out thread_state_t.
|
| /xnu-11417.121.6/doc/observability/ |
| H A D | mt_stackshot.md | 136 During a panic stackshot, stackshot handles basically identically to how it did
|
| /xnu-11417.121.6/tests/ |
| H A D | stackshot_accuracy.m | 53 /* ssh won't let the session die if we still have file handles open to its output. */
|
| /xnu-11417.121.6/doc/vm/ |
| H A D | sanitize.md | 357 because each handles their `addr/size` parameters differently.
|