Lines Matching refs:result_parameter
406 …lt_string, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter);
415 …heme_port, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter);
421 …heme_port, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter);
2701 necp_get_result_description(result_string, policy->result, policy->result_parameter); in necp_handle_policy_dump_all()
4110 …cheme_port, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter) in necp_kernel_socket_policy_add() argument
4222 memcpy(&new_kernel_policy->result_parameter, &result_parameter, sizeof(result_parameter)); in necp_kernel_socket_policy_add()
4290 …ult_string, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter) in necp_get_result_description() argument
4299 snprintf(result_string, MAX_RESULT_STRING_LEN, "Pass (%X)", result_parameter.pass_flags); in necp_get_result_description()
4303 snprintf(result_string, MAX_RESULT_STRING_LEN, "Skip (%u)", result_parameter.skip_policy_order); in necp_get_result_description()
4307 snprintf(result_string, MAX_RESULT_STRING_LEN, "Drop (%X)", result_parameter.drop_flags); in necp_get_result_description()
4311 …snprintf(result_string, MAX_RESULT_STRING_LEN, "SocketDivert (%d)", result_parameter.flow_divert_c… in necp_get_result_description()
4315 …snprintf(result_string, MAX_RESULT_STRING_LEN, "SocketFilter (%d)", result_parameter.filter_contro… in necp_get_result_description()
4319 ifnet_t interface = ifindex2ifnet[result_parameter.tunnel_interface_index]; in necp_get_result_description()
4328 ifnet_t interface = ifindex2ifnet[result_parameter.scoped_interface_index]; in necp_get_result_description()
4343 …rule *route_rule = necp_lookup_route_rule_locked(&necp_route_rules, result_parameter.route_rule_id… in necp_get_result_description()
4445 …d_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.netagent_id); in necp_get_result_description()
4455 …d_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.netagent_id); in necp_get_result_description()
4465 …d_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.netagent_id); in necp_get_result_description()
4475 …_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.service.ident… in necp_get_result_description()
4480 …NG_LEN, "Trigger (%s.%d)", found_mapping ? uuid_string : "Unknown", result_parameter.service.data); in necp_get_result_description()
4485 …_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.service.ident… in necp_get_result_description()
4490 …"TriggerIfNeeded (%s.%d)", found_mapping ? uuid_string : "Unknown", result_parameter.service.data); in necp_get_result_description()
4495 …_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.service.ident… in necp_get_result_description()
4500 …, "TriggerScoped (%s.%d)", found_mapping ? uuid_string : "Unknown", result_parameter.service.data); in necp_get_result_description()
4505 …_id_mapping *mapping = necp_uuid_lookup_uuid_with_service_id_locked(result_parameter.service.ident… in necp_get_result_description()
4510 …"NoTriggerScoped (%s.%d)", found_mapping ? uuid_string : "Unknown", result_parameter.service.data); in necp_get_result_description()
4514 …snprintf(result_string, MAX_RESULT_STRING_LEN, "Unknown %d (%d)", result, result_parameter.tunnel_… in necp_get_result_description()
4538 …dition_mask, necp_get_result_description(result_string, policy->result, policy->result_parameter)); in necp_kernel_socket_policies_dump_all()
4551 …dition_mask, necp_get_result_description(result_string, policy->result, policy->result_parameter)); in necp_kernel_socket_policies_dump_all()
4586 if (upper_policy->result_parameter.skip_policy_order == 0 || in necp_kernel_socket_policy_results_overlap()
4587 lower_policy->order >= upper_policy->result_parameter.skip_policy_order) { in necp_kernel_socket_policy_results_overlap()
4622 if (compared_policy->result_parameter.skip_policy_order > highest_skip_order) { in necp_kernel_socket_policy_is_unnecessary()
4623 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_socket_policy_is_unnecessary()
4634 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_socket_policy_is_unnecessary()
5785 …cheme_port, necp_kernel_policy_result result, necp_kernel_policy_result_parameter result_parameter) in necp_kernel_ip_output_policy_add() argument
5852 memcpy(&new_kernel_policy->result_parameter, &result_parameter, sizeof(result_parameter)); in necp_kernel_ip_output_policy_add()
5923 …dition_mask, necp_get_result_description(result_string, policy->result, policy->result_parameter)); in necp_kernel_ip_output_policies_dump_all()
5938 if (upper_policy->result_parameter.skip_policy_order == 0 || in necp_kernel_ip_output_policy_results_overlap()
5939 lower_policy->order >= upper_policy->result_parameter.skip_policy_order) { in necp_kernel_ip_output_policy_results_overlap()
5974 if (compared_policy->result_parameter.skip_policy_order > highest_skip_order) { in necp_kernel_ip_output_policy_is_unnecessary()
5975 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_ip_output_policy_is_unnecessary()
5986 highest_skip_order = compared_policy->result_parameter.skip_policy_order; in necp_kernel_ip_output_policy_is_unnecessary()
6991 …memcpy(&returned_result->routing_result_parameter, &matched_policy->result_parameter, sizeof(retur… in necp_application_find_policy_match_internal()
8372 …necp_kernel_policy_filter control_unit = policy_search_array[i]->result_parameter.filter_control_u… in necp_socket_find_policy_match_with_info_locked()
8388 …nfo->bound_interface_index, info->protocol, policy_search_array[i]->result_parameter.filter_contro… in necp_socket_find_policy_match_with_info_locked()
8394 …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()
8396 …nfo->bound_interface_index, info->protocol, policy_search_array[i]->result_parameter.route_rule_id… in necp_socket_find_policy_match_with_info_locked()
8408 return_service->identifier = policy_search_array[i]->result_parameter.service.identifier; in necp_socket_find_policy_match_with_info_locked()
8409 return_service->data = policy_search_array[i]->result_parameter.service.data; in necp_socket_find_policy_match_with_info_locked()
8411 …fo->protocol, policy_search_array[i]->result_parameter.service.identifier, policy_search_array[i]-… in necp_socket_find_policy_match_with_info_locked()
8420 if (netagent_ids[netagent_i] == policy_search_array[i]->result_parameter.netagent_id) { in necp_socket_find_policy_match_with_info_locked()
8431 netagent_ids[netagent_cursor] = policy_search_array[i]->result_parameter.netagent_id; in necp_socket_find_policy_match_with_info_locked()
8441 policy_search_array[i]->result_parameter.netagent_id); in necp_socket_find_policy_match_with_info_locked()
8448 if (netagent_ids[netagent_i] == policy_search_array[i]->result_parameter.netagent_id) { in necp_socket_find_policy_match_with_info_locked()
8456 netagent_ids[netagent_cursor] = policy_search_array[i]->result_parameter.netagent_id; in necp_socket_find_policy_match_with_info_locked()
8463 policy_search_array[i]->result_parameter.netagent_id); in necp_socket_find_policy_match_with_info_locked()
8467 u_int32_t control_unit = policy_search_array[i]->result_parameter.flow_divert_control_unit; in necp_socket_find_policy_match_with_info_locked()
8483 skip_order = policy_search_array[i]->result_parameter.skip_policy_order; in necp_socket_find_policy_match_with_info_locked()
8596 …u_int tunnel_interface_index = inp->inp_policyresult.results.result_parameter.tunnel_interface_ind… in necp_socket_ip_tunnel_tso()
8862 …inp->inp_policyresult.results.result_parameter, &matched_policy->result_parameter, sizeof(matched_… in necp_socket_find_policy_match()
8870 …ESULT_IP_TUNNEL && !necp_socket_uses_interface(inp, matched_policy->result_parameter.tunnel_interf… in necp_socket_find_policy_match()
8881 …otocol, matched_policy->id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_socket_find_policy_match()
8885 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK) { in necp_socket_find_policy_match()
8909 …inp->inp_policyresult.results.result_parameter.flow_divert_control_unit = flow_divert_control_unit; in necp_socket_find_policy_match()
9226 …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()
9230 skip_order = policy_search_array[i]->result_parameter.skip_policy_order; in necp_ip_output_find_policy_match_locked()
9270 necp_kernel_policy_result *result, necp_kernel_policy_result_parameter *result_parameter) in necp_ip_output_find_policy_match() argument
9291 if (result_parameter) { in necp_ip_output_find_policy_match()
9292 memset(result_parameter, 0, sizeof(*result_parameter)); in necp_ip_output_find_policy_match()
9396 if (result_parameter) { in necp_ip_output_find_policy_match()
9397 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip_output_find_policy_match()
9406 …otocol, matched_policy->id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_ip_output_find_policy_match()
9441 necp_kernel_policy_result *result, necp_kernel_policy_result_parameter *result_parameter) in necp_ip6_output_find_policy_match() argument
9463 if (result_parameter) { in necp_ip6_output_find_policy_match()
9464 memset(result_parameter, 0, sizeof(*result_parameter)); in necp_ip6_output_find_policy_match()
9565 if (result_parameter) { in necp_ip6_output_find_policy_match()
9566 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip6_output_find_policy_match()
9575 …otocol, matched_policy->id, matched_policy->result, matched_policy->result_parameter.tunnel_interf… in necp_ip6_output_find_policy_match()
10624 inp->inp_policyresult.results.result_parameter.tunnel_interface_index != verifyifindex)) { in necp_socket_is_allowed_to_send_recv_internal()
10637 pass_flags = inp->inp_policyresult.results.result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
10665 inp->inp_policyresult.results.result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
10681 pass_flags = inp->inp_policyresult.results.result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
10722 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK) { in necp_socket_is_allowed_to_send_recv_internal()
10730 matched_policy->result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
10746 pass_flags = matched_policy->result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
10910 …((inp->inp_policyresult.results.result_parameter.pass_flags & NECP_KERNEL_POLICY_PASS_PF_TAG) == N… in necp_mark_packet_from_socket()
11106 return inp->inp_policyresult.results.result_parameter.flow_divert_control_unit; in necp_socket_get_flow_divert_control_unit()
11131 return inp->inp_policyresult.results.result_parameter.scoped_interface_index; in necp_socket_get_rescope_if_index()
11150 …u_int tunnel_interface_index = inp->inp_policyresult.results.result_parameter.tunnel_interface_ind… in necp_socket_get_effective_mtu()
11191 necp_get_ifnet_from_result_parameter(necp_kernel_policy_result_parameter *result_parameter) in necp_get_ifnet_from_result_parameter() argument
11193 if (result_parameter == NULL) { in necp_get_ifnet_from_result_parameter()
11197 return ifindex2ifnet[result_parameter->tunnel_interface_index]; in necp_get_ifnet_from_result_parameter()