Lines Matching refs:result_parameter
464 …lt_string, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter);
473 …rks_flags, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter);
500 …rks_flags, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter);
3453 necp_get_result_description(result_string, policy->result, policy->result_parameter); in necp_handle_policy_dump_all()
5000 …orks_flags, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter) in necp_kernel_socket_policy_add() argument
5129 memcpy(&new_kernel_policy->result_parameter, &result_parameter, sizeof(result_parameter)); in necp_kernel_socket_policy_add()
5207 …ult_string, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter) in __sized_by()
5216 snprintf(result_string, MAX_RESULT_STRING_LEN, "Pass (%X)", result_parameter.pass_flags); in __sized_by()
5220 snprintf(result_string, MAX_RESULT_STRING_LEN, "Skip (%u)", result_parameter.skip_policy_order); in __sized_by()
5224 snprintf(result_string, MAX_RESULT_STRING_LEN, "Drop (%X)", result_parameter.drop_flags); in __sized_by()
5228 …snprintf(result_string, MAX_RESULT_STRING_LEN, "SocketDivert (%d)", result_parameter.flow_divert_c… in __sized_by()
5232 …snprintf(result_string, MAX_RESULT_STRING_LEN, "SocketFilter (%d)", result_parameter.filter_contro… in __sized_by()
5236 ifnet_t interface = ifindex2ifnet[result_parameter.tunnel_interface_index]; in __sized_by()
5245 ifnet_t interface = ifindex2ifnet[result_parameter.scoped_interface_index]; in __sized_by()
5260 …rule *route_rule = necp_lookup_route_rule_locked(&necp_route_rules, result_parameter.route_rule_id… in __sized_by()
5369 …d_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.netagent_id); in __sized_by()
5379 …d_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.netagent_id); in __sized_by()
5389 …d_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.netagent_id); in __sized_by()
5398 …snprintf(result_string, MAX_RESULT_STRING_LEN, "Unknown %d (%d)", result, result_parameter.tunnel_… in __sized_by()
5422 …dition_mask, necp_get_result_description(result_string, policy->result, policy->result_parameter)); in necp_kernel_socket_policies_dump_all()
5435 …dition_mask, necp_get_result_description(result_string, policy->result, policy->result_parameter)); in necp_kernel_socket_policies_dump_all()
5461 if (upper_policy->result_parameter.skip_policy_order == 0 || in necp_kernel_socket_policy_results_overlap()
5462 lower_policy->order >= upper_policy->result_parameter.skip_policy_order) { in necp_kernel_socket_policy_results_overlap()
5497 if (compared_policy->result_parameter.skip_policy_order > highest_skip_order) { in necp_kernel_socket_policy_is_unnecessary()
5498 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_socket_policy_is_unnecessary()
5509 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_socket_policy_is_unnecessary()
6945 …orks_flags, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter) in necp_kernel_ip_output_policy_add() argument
7023 memcpy(&new_kernel_policy->result_parameter, &result_parameter, sizeof(result_parameter)); in necp_kernel_ip_output_policy_add()
7094 …dition_mask, necp_get_result_description(result_string, policy->result, policy->result_parameter)); in necp_kernel_ip_output_policies_dump_all()
7109 if (upper_policy->result_parameter.skip_policy_order == 0 || in necp_kernel_ip_output_policy_results_overlap()
7110 lower_policy->order >= upper_policy->result_parameter.skip_policy_order) { in necp_kernel_ip_output_policy_results_overlap()
7145 if (compared_policy->result_parameter.skip_policy_order > highest_skip_order) { in necp_kernel_ip_output_policy_is_unnecessary()
7146 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_ip_output_policy_is_unnecessary()
7157 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_ip_output_policy_is_unnecessary()
8367 …memcpy(&returned_result->routing_result_parameter, &matched_policy->result_parameter, sizeof(retur… in necp_application_find_policy_match_internal()
8472 …if (!(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS))… in necp_application_find_policy_match_internal()
10202 …necp_kernel_policy_filter control_unit = policy_search_array[i]->result_parameter.filter_control_u… in necp_socket_find_policy_match_with_info_locked()
10224 …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()
10226 …nfo->bound_interface_index, info->protocol, policy_search_array[i]->result_parameter.route_rule_id… in necp_socket_find_policy_match_with_info_locked()
10235 if (netagent_ids[netagent_i] == policy_search_array[i]->result_parameter.netagent_id) { in necp_socket_find_policy_match_with_info_locked()
10246 netagent_ids[netagent_cursor] = policy_search_array[i]->result_parameter.netagent_id; in necp_socket_find_policy_match_with_info_locked()
10256 policy_search_array[i]->result_parameter.netagent_id); in necp_socket_find_policy_match_with_info_locked()
10263 if (netagent_ids[netagent_i] == policy_search_array[i]->result_parameter.netagent_id) { in necp_socket_find_policy_match_with_info_locked()
10271 netagent_ids[netagent_cursor] = policy_search_array[i]->result_parameter.netagent_id; in necp_socket_find_policy_match_with_info_locked()
10278 policy_search_array[i]->result_parameter.netagent_id); in necp_socket_find_policy_match_with_info_locked()
10282 u_int32_t control_unit = policy_search_array[i]->result_parameter.flow_divert_control_unit; in necp_socket_find_policy_match_with_info_locked()
10298 skip_order = policy_search_array[i]->result_parameter.skip_policy_order; in necp_socket_find_policy_match_with_info_locked()
10433 …u_int tunnel_interface_index = inp->inp_policyresult.results.result_parameter.tunnel_interface_ind… in necp_socket_ip_tunnel_tso()
10621 inp->inp_policyresult.results.result_parameter.tunnel_interface_index); in necp_socket_find_policy_match()
10751 …inp->inp_policyresult.results.result_parameter, &matched_policy->result_parameter, sizeof(matched_… in necp_socket_find_policy_match()
10763 …ESULT_IP_TUNNEL && !necp_socket_uses_interface(inp, matched_policy->result_parameter.tunnel_interf… in necp_socket_find_policy_match()
10774 …policy->id, skip_policy_id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_socket_find_policy_match()
10778 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK && in necp_socket_find_policy_match()
10779 … !(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS)) { in necp_socket_find_policy_match()
10804 …inp->inp_policyresult.results.result_parameter.flow_divert_control_unit = flow_divert_control_unit; in necp_socket_find_policy_match()
11214 …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()
11218 skip_order = policy_search_array[i]->result_parameter.skip_policy_order; in necp_ip_output_find_policy_match_locked()
11258 necp_kernel_policy_result *result, necp_kernel_policy_result_parameter *result_parameter) in necp_ip_output_find_policy_match() argument
11279 if (result_parameter) { in necp_ip_output_find_policy_match()
11280 memset(result_parameter, 0, sizeof(*result_parameter)); in necp_ip_output_find_policy_match()
11384 if (result_parameter) { in necp_ip_output_find_policy_match()
11385 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip_output_find_policy_match()
11394 …otocol, matched_policy->id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_ip_output_find_policy_match()
11432 necp_kernel_policy_result *result, necp_kernel_policy_result_parameter *result_parameter) in necp_ip6_output_find_policy_match() argument
11454 if (result_parameter) { in necp_ip6_output_find_policy_match()
11455 memset(result_parameter, 0, sizeof(*result_parameter)); in necp_ip6_output_find_policy_match()
11557 if (result_parameter) { in necp_ip6_output_find_policy_match()
11558 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip6_output_find_policy_match()
11567 …otocol, matched_policy->id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_ip6_output_find_policy_match()
12828 inp->inp_policyresult.results.result_parameter.tunnel_interface_index != verifyifindex)) { in necp_socket_is_allowed_to_send_recv_internal()
12842 pass_flags = inp->inp_policyresult.results.result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
12875 inp->inp_policyresult.results.result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
12892 pass_flags = inp->inp_policyresult.results.result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
12900 inp->inp_policyresult.results.result_parameter.tunnel_interface_index); in necp_socket_is_allowed_to_send_recv_internal()
13013 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK && in necp_socket_is_allowed_to_send_recv_internal()
13014 … !(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS)) { in necp_socket_is_allowed_to_send_recv_internal()
13022 matched_policy->result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
13036 pass_flags = matched_policy->result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
13063 …otocol, matched_policy->id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_socket_is_allowed_to_send_recv_internal()
13247 …((inp->inp_policyresult.results.result_parameter.pass_flags & NECP_KERNEL_POLICY_PASS_PF_TAG) == N… in necp_mark_packet_from_socket()
13481 return inp->inp_policyresult.results.result_parameter.flow_divert_control_unit; in necp_socket_get_flow_divert_control_unit()
13506 return inp->inp_policyresult.results.result_parameter.scoped_interface_index; in necp_socket_get_rescope_if_index()
13525 …u_int tunnel_interface_index = inp->inp_policyresult.results.result_parameter.tunnel_interface_ind… in necp_socket_get_effective_mtu()
13567 necp_get_ifnet_from_result_parameter(necp_kernel_policy_result_parameter *result_parameter) in necp_get_ifnet_from_result_parameter() argument
13569 if (result_parameter == NULL) { in necp_get_ifnet_from_result_parameter()
13573 return ifindex2ifnet[result_parameter->tunnel_interface_index]; in necp_get_ifnet_from_result_parameter()