Lines Matching refs:result_parameter
457 …lt_string, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter);
466 …rks_flags, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter);
491 …rks_flags, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter);
3377 necp_get_result_description(result_string, policy->result, policy->result_parameter); in necp_handle_policy_dump_all()
4941 …orks_flags, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter) in necp_kernel_socket_policy_add() argument
5070 memcpy(&new_kernel_policy->result_parameter, &result_parameter, sizeof(result_parameter)); in necp_kernel_socket_policy_add()
5148 …ult_string, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter) in __sized_by()
5157 snprintf(result_string, MAX_RESULT_STRING_LEN, "Pass (%X)", result_parameter.pass_flags); in __sized_by()
5161 snprintf(result_string, MAX_RESULT_STRING_LEN, "Skip (%u)", result_parameter.skip_policy_order); in __sized_by()
5165 snprintf(result_string, MAX_RESULT_STRING_LEN, "Drop (%X)", result_parameter.drop_flags); in __sized_by()
5169 …snprintf(result_string, MAX_RESULT_STRING_LEN, "SocketDivert (%d)", result_parameter.flow_divert_c… in __sized_by()
5173 …snprintf(result_string, MAX_RESULT_STRING_LEN, "SocketFilter (%d)", result_parameter.filter_contro… in __sized_by()
5177 ifnet_t interface = ifindex2ifnet[result_parameter.tunnel_interface_index]; in __sized_by()
5186 ifnet_t interface = ifindex2ifnet[result_parameter.scoped_interface_index]; in __sized_by()
5201 …rule *route_rule = necp_lookup_route_rule_locked(&necp_route_rules, result_parameter.route_rule_id… in __sized_by()
5313 …uid_id_mapping *mapping = necp_uuid_lookup_uuid_with_agent_id_locked(result_parameter.netagent_id); in __sized_by()
5323 …uid_id_mapping *mapping = necp_uuid_lookup_uuid_with_agent_id_locked(result_parameter.netagent_id); in __sized_by()
5333 …uid_id_mapping *mapping = necp_uuid_lookup_uuid_with_agent_id_locked(result_parameter.netagent_id); in __sized_by()
5343 …ent_type_id_mapping *mapping = necp_lookup_agent_type_with_id_locked(result_parameter.netagent_id); in __sized_by()
5351 …snprintf(result_string, MAX_RESULT_STRING_LEN, "Unknown %d (%d)", result, result_parameter.tunnel_… in __sized_by()
5375 …dition_mask, necp_get_result_description(result_string, policy->result, policy->result_parameter)); in necp_kernel_socket_policies_dump_all()
5388 …dition_mask, necp_get_result_description(result_string, policy->result, policy->result_parameter)); in necp_kernel_socket_policies_dump_all()
5415 if (upper_policy->result_parameter.skip_policy_order == 0 || in necp_kernel_socket_policy_results_overlap()
5416 lower_policy->order >= upper_policy->result_parameter.skip_policy_order) { in necp_kernel_socket_policy_results_overlap()
5451 if (compared_policy->result_parameter.skip_policy_order > highest_skip_order) { in necp_kernel_socket_policy_is_unnecessary()
5452 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_socket_policy_is_unnecessary()
5463 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_socket_policy_is_unnecessary()
7021 …orks_flags, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter) in necp_kernel_ip_output_policy_add() argument
7099 memcpy(&new_kernel_policy->result_parameter, &result_parameter, sizeof(result_parameter)); in necp_kernel_ip_output_policy_add()
7170 …dition_mask, necp_get_result_description(result_string, policy->result, policy->result_parameter)); in necp_kernel_ip_output_policies_dump_all()
7185 if (upper_policy->result_parameter.skip_policy_order == 0 || in necp_kernel_ip_output_policy_results_overlap()
7186 lower_policy->order >= upper_policy->result_parameter.skip_policy_order) { in necp_kernel_ip_output_policy_results_overlap()
7221 if (compared_policy->result_parameter.skip_policy_order > highest_skip_order) { in necp_kernel_ip_output_policy_is_unnecessary()
7222 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_ip_output_policy_is_unnecessary()
7233 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_ip_output_policy_is_unnecessary()
8459 …memcpy(&returned_result->routing_result_parameter, &matched_policy->result_parameter, sizeof(retur… in necp_application_find_policy_match_internal()
8551 …if (!(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS))… in necp_application_find_policy_match_internal()
10283 …necp_kernel_policy_filter control_unit = policy_search_array[i]->result_parameter.filter_control_u… in necp_socket_find_policy_match_with_info_locked()
10305 …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()
10307 …nfo->bound_interface_index, info->protocol, policy_search_array[i]->result_parameter.route_rule_id… in necp_socket_find_policy_match_with_info_locked()
10316 if (netagent_ids[netagent_i] == policy_search_array[i]->result_parameter.netagent_id) { in necp_socket_find_policy_match_with_info_locked()
10327 netagent_ids[netagent_cursor] = policy_search_array[i]->result_parameter.netagent_id; in necp_socket_find_policy_match_with_info_locked()
10337 policy_search_array[i]->result_parameter.netagent_id); in necp_socket_find_policy_match_with_info_locked()
10344 if (netagent_ids[netagent_i] == policy_search_array[i]->result_parameter.netagent_id) { in necp_socket_find_policy_match_with_info_locked()
10352 netagent_ids[netagent_cursor] = policy_search_array[i]->result_parameter.netagent_id; in necp_socket_find_policy_match_with_info_locked()
10359 policy_search_array[i]->result_parameter.netagent_id); in necp_socket_find_policy_match_with_info_locked()
10365 if (netagent_ids[netagent_i] == policy_search_array[i]->result_parameter.netagent_id) { in necp_socket_find_policy_match_with_info_locked()
10373 netagent_ids[netagent_cursor] = policy_search_array[i]->result_parameter.netagent_id; in necp_socket_find_policy_match_with_info_locked()
10380 policy_search_array[i]->result_parameter.netagent_id); in necp_socket_find_policy_match_with_info_locked()
10384 u_int32_t control_unit = policy_search_array[i]->result_parameter.flow_divert_control_unit; in necp_socket_find_policy_match_with_info_locked()
10400 skip_order = policy_search_array[i]->result_parameter.skip_policy_order; in necp_socket_find_policy_match_with_info_locked()
10535 …u_int tunnel_interface_index = inp->inp_policyresult.results.result_parameter.tunnel_interface_ind… in necp_socket_ip_tunnel_tso()
10721 inp->inp_policyresult.results.result_parameter.tunnel_interface_index); in necp_socket_find_policy_match()
10849 …inp->inp_policyresult.results.result_parameter, &matched_policy->result_parameter, sizeof(matched_… in necp_socket_find_policy_match()
10861 …ESULT_IP_TUNNEL && !necp_socket_uses_interface(inp, matched_policy->result_parameter.tunnel_interf… in necp_socket_find_policy_match()
10872 …policy->id, skip_policy_id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_socket_find_policy_match()
10876 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK && in necp_socket_find_policy_match()
10877 … !(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS)) { in necp_socket_find_policy_match()
10902 …inp->inp_policyresult.results.result_parameter.flow_divert_control_unit = flow_divert_control_unit; in necp_socket_find_policy_match()
11312 …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()
11316 skip_order = policy_search_array[i]->result_parameter.skip_policy_order; in necp_ip_output_find_policy_match_locked()
11356 necp_kernel_policy_result *result, necp_kernel_policy_result_parameter *result_parameter) in necp_ip_output_find_policy_match() argument
11377 if (result_parameter) { in necp_ip_output_find_policy_match()
11378 memset(result_parameter, 0, sizeof(*result_parameter)); in necp_ip_output_find_policy_match()
11482 if (result_parameter) { in necp_ip_output_find_policy_match()
11483 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip_output_find_policy_match()
11492 …otocol, matched_policy->id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_ip_output_find_policy_match()
11530 necp_kernel_policy_result *result, necp_kernel_policy_result_parameter *result_parameter) in necp_ip6_output_find_policy_match() argument
11552 if (result_parameter) { in necp_ip6_output_find_policy_match()
11553 memset(result_parameter, 0, sizeof(*result_parameter)); in necp_ip6_output_find_policy_match()
11655 if (result_parameter) { in necp_ip6_output_find_policy_match()
11656 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip6_output_find_policy_match()
11665 …otocol, matched_policy->id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_ip6_output_find_policy_match()
12963 inp->inp_policyresult.results.result_parameter.tunnel_interface_index != verifyifindex)) { in necp_socket_is_allowed_to_send_recv_internal()
12977 pass_flags = inp->inp_policyresult.results.result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
13010 inp->inp_policyresult.results.result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
13027 pass_flags = inp->inp_policyresult.results.result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
13035 inp->inp_policyresult.results.result_parameter.tunnel_interface_index); in necp_socket_is_allowed_to_send_recv_internal()
13146 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK && in necp_socket_is_allowed_to_send_recv_internal()
13147 … !(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS)) { in necp_socket_is_allowed_to_send_recv_internal()
13155 matched_policy->result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
13169 pass_flags = matched_policy->result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
13196 …otocol, matched_policy->id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_socket_is_allowed_to_send_recv_internal()
13380 …((inp->inp_policyresult.results.result_parameter.pass_flags & NECP_KERNEL_POLICY_PASS_PF_TAG) == N… in necp_mark_packet_from_socket()
13614 return inp->inp_policyresult.results.result_parameter.flow_divert_control_unit; in necp_socket_get_flow_divert_control_unit()
13639 return inp->inp_policyresult.results.result_parameter.scoped_interface_index; in necp_socket_get_rescope_if_index()
13658 …u_int tunnel_interface_index = inp->inp_policyresult.results.result_parameter.tunnel_interface_ind… in necp_socket_get_effective_mtu()
13700 necp_get_ifnet_from_result_parameter(necp_kernel_policy_result_parameter *result_parameter) in necp_get_ifnet_from_result_parameter() argument
13702 if (result_parameter == NULL) { in necp_get_ifnet_from_result_parameter()
13706 return ifindex2ifnet[result_parameter->tunnel_interface_index]; in necp_get_ifnet_from_result_parameter()