Lines Matching refs:result_parameter
424 …lt_string, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter);
433 …heme_port, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter);
439 …heme_port, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter);
2889 necp_get_result_description(result_string, policy->result, policy->result_parameter); in necp_handle_policy_dump_all()
4313 …cheme_port, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter) in necp_kernel_socket_policy_add() argument
4425 memcpy(&new_kernel_policy->result_parameter, &result_parameter, sizeof(result_parameter)); in necp_kernel_socket_policy_add()
4493 …ult_string, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter) in necp_get_result_description() argument
4502 snprintf(result_string, MAX_RESULT_STRING_LEN, "Pass (%X)", result_parameter.pass_flags); in necp_get_result_description()
4506 snprintf(result_string, MAX_RESULT_STRING_LEN, "Skip (%u)", result_parameter.skip_policy_order); in necp_get_result_description()
4510 snprintf(result_string, MAX_RESULT_STRING_LEN, "Drop (%X)", result_parameter.drop_flags); in necp_get_result_description()
4514 …snprintf(result_string, MAX_RESULT_STRING_LEN, "SocketDivert (%d)", result_parameter.flow_divert_c… in necp_get_result_description()
4518 …snprintf(result_string, MAX_RESULT_STRING_LEN, "SocketFilter (%d)", result_parameter.filter_contro… in necp_get_result_description()
4522 ifnet_t interface = ifindex2ifnet[result_parameter.tunnel_interface_index]; in necp_get_result_description()
4531 ifnet_t interface = ifindex2ifnet[result_parameter.scoped_interface_index]; in necp_get_result_description()
4546 …rule *route_rule = necp_lookup_route_rule_locked(&necp_route_rules, result_parameter.route_rule_id… in necp_get_result_description()
4648 …d_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.netagent_id); in necp_get_result_description()
4658 …d_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.netagent_id); in necp_get_result_description()
4668 …d_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.netagent_id); in necp_get_result_description()
4677 …snprintf(result_string, MAX_RESULT_STRING_LEN, "Unknown %d (%d)", result, result_parameter.tunnel_… in necp_get_result_description()
4701 …dition_mask, necp_get_result_description(result_string, policy->result, policy->result_parameter)); in necp_kernel_socket_policies_dump_all()
4714 …dition_mask, necp_get_result_description(result_string, policy->result, policy->result_parameter)); in necp_kernel_socket_policies_dump_all()
4740 if (upper_policy->result_parameter.skip_policy_order == 0 || in necp_kernel_socket_policy_results_overlap()
4741 lower_policy->order >= upper_policy->result_parameter.skip_policy_order) { in necp_kernel_socket_policy_results_overlap()
4776 if (compared_policy->result_parameter.skip_policy_order > highest_skip_order) { in necp_kernel_socket_policy_is_unnecessary()
4777 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_socket_policy_is_unnecessary()
4788 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_socket_policy_is_unnecessary()
6032 …cheme_port, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter) in necp_kernel_ip_output_policy_add() argument
6099 memcpy(&new_kernel_policy->result_parameter, &result_parameter, sizeof(result_parameter)); in necp_kernel_ip_output_policy_add()
6170 …dition_mask, necp_get_result_description(result_string, policy->result, policy->result_parameter)); in necp_kernel_ip_output_policies_dump_all()
6185 if (upper_policy->result_parameter.skip_policy_order == 0 || in necp_kernel_ip_output_policy_results_overlap()
6186 lower_policy->order >= upper_policy->result_parameter.skip_policy_order) { in necp_kernel_ip_output_policy_results_overlap()
6221 if (compared_policy->result_parameter.skip_policy_order > highest_skip_order) { in necp_kernel_ip_output_policy_is_unnecessary()
6222 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_ip_output_policy_is_unnecessary()
6233 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_ip_output_policy_is_unnecessary()
7290 …memcpy(&returned_result->routing_result_parameter, &matched_policy->result_parameter, sizeof(retur… in necp_application_find_policy_match_internal()
8782 …necp_kernel_policy_filter control_unit = policy_search_array[i]->result_parameter.filter_control_u… in necp_socket_find_policy_match_with_info_locked()
8798 …nfo->bound_interface_index, info->protocol, policy_search_array[i]->result_parameter.filter_contro… in necp_socket_find_policy_match_with_info_locked()
8804 …return_route_rule_id_array[route_rule_id_count++] = policy_search_array[i]->result_parameter.route… in necp_socket_find_policy_match_with_info_locked()
8806 …nfo->bound_interface_index, info->protocol, policy_search_array[i]->result_parameter.route_rule_id… in necp_socket_find_policy_match_with_info_locked()
8815 if (netagent_ids[netagent_i] == policy_search_array[i]->result_parameter.netagent_id) { in necp_socket_find_policy_match_with_info_locked()
8826 netagent_ids[netagent_cursor] = policy_search_array[i]->result_parameter.netagent_id; in necp_socket_find_policy_match_with_info_locked()
8836 policy_search_array[i]->result_parameter.netagent_id); in necp_socket_find_policy_match_with_info_locked()
8843 if (netagent_ids[netagent_i] == policy_search_array[i]->result_parameter.netagent_id) { in necp_socket_find_policy_match_with_info_locked()
8851 netagent_ids[netagent_cursor] = policy_search_array[i]->result_parameter.netagent_id; in necp_socket_find_policy_match_with_info_locked()
8858 policy_search_array[i]->result_parameter.netagent_id); in necp_socket_find_policy_match_with_info_locked()
8862 u_int32_t control_unit = policy_search_array[i]->result_parameter.flow_divert_control_unit; in necp_socket_find_policy_match_with_info_locked()
8878 skip_order = policy_search_array[i]->result_parameter.skip_policy_order; in necp_socket_find_policy_match_with_info_locked()
8992 …u_int tunnel_interface_index = inp->inp_policyresult.results.result_parameter.tunnel_interface_ind… in necp_socket_ip_tunnel_tso()
9221 …inp->inp_policyresult.results.result_parameter, &matched_policy->result_parameter, sizeof(matched_… in necp_socket_find_policy_match()
9229 …ESULT_IP_TUNNEL && !necp_socket_uses_interface(inp, matched_policy->result_parameter.tunnel_interf… in necp_socket_find_policy_match()
9240 …otocol, matched_policy->id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_socket_find_policy_match()
9244 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK) { in necp_socket_find_policy_match()
9269 …inp->inp_policyresult.results.result_parameter.flow_divert_control_unit = flow_divert_control_unit; in necp_socket_find_policy_match()
9587 …route_rule_id_array[route_rule_id_count++] = policy_search_array[i]->result_parameter.route_rule_i… in necp_ip_output_find_policy_match_locked()
9591 skip_order = policy_search_array[i]->result_parameter.skip_policy_order; in necp_ip_output_find_policy_match_locked()
9631 necp_kernel_policy_result *result, necp_kernel_policy_result_parameter *result_parameter) in necp_ip_output_find_policy_match() argument
9652 if (result_parameter) { in necp_ip_output_find_policy_match()
9653 memset(result_parameter, 0, sizeof(*result_parameter)); in necp_ip_output_find_policy_match()
9757 if (result_parameter) { in necp_ip_output_find_policy_match()
9758 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip_output_find_policy_match()
9767 …otocol, matched_policy->id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_ip_output_find_policy_match()
9802 necp_kernel_policy_result *result, necp_kernel_policy_result_parameter *result_parameter) in necp_ip6_output_find_policy_match() argument
9824 if (result_parameter) { in necp_ip6_output_find_policy_match()
9825 memset(result_parameter, 0, sizeof(*result_parameter)); in necp_ip6_output_find_policy_match()
9926 if (result_parameter) { in necp_ip6_output_find_policy_match()
9927 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip6_output_find_policy_match()
9936 …otocol, matched_policy->id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_ip6_output_find_policy_match()
10996 inp->inp_policyresult.results.result_parameter.tunnel_interface_index != verifyifindex)) { in necp_socket_is_allowed_to_send_recv_internal()
11009 pass_flags = inp->inp_policyresult.results.result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
11037 inp->inp_policyresult.results.result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
11053 pass_flags = inp->inp_policyresult.results.result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
11094 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK) { in necp_socket_is_allowed_to_send_recv_internal()
11102 matched_policy->result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
11115 pass_flags = matched_policy->result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
11279 …((inp->inp_policyresult.results.result_parameter.pass_flags & NECP_KERNEL_POLICY_PASS_PF_TAG) == N… in necp_mark_packet_from_socket()
11475 return inp->inp_policyresult.results.result_parameter.flow_divert_control_unit; in necp_socket_get_flow_divert_control_unit()
11500 return inp->inp_policyresult.results.result_parameter.scoped_interface_index; in necp_socket_get_rescope_if_index()
11519 …u_int tunnel_interface_index = inp->inp_policyresult.results.result_parameter.tunnel_interface_ind… in necp_socket_get_effective_mtu()
11560 necp_get_ifnet_from_result_parameter(necp_kernel_policy_result_parameter *result_parameter) in necp_get_ifnet_from_result_parameter() argument
11562 if (result_parameter == NULL) { in necp_get_ifnet_from_result_parameter()
11566 return ifindex2ifnet[result_parameter->tunnel_interface_index]; in necp_get_ifnet_from_result_parameter()