Lines Matching refs:route_rule

4546 …struct necp_route_rule *route_rule = necp_lookup_route_rule_locked(&necp_route_rules, result_param…  in necp_get_result_description()  local
4547 if (route_rule != NULL) { in necp_get_result_description()
4549 if (route_rule->exception_if_indices[index] != 0) { in necp_get_result_description()
4550 ifnet_t interface = ifindex2ifnet[route_rule->exception_if_indices[index]]; in necp_get_result_description()
4556 switch (route_rule->default_action) { in necp_get_result_description()
4559 (route_rule->cellular_action == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? "Cell " : "", in necp_get_result_description()
4560 (route_rule->wifi_action == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? "WiFi " : "", in necp_get_result_description()
4561 (route_rule->wired_action == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? "Wired " : "", in necp_get_result_description()
4562 (route_rule->expensive_action == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? "Exp " : "", in necp_get_result_description()
4563 (route_rule->constrained_action == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? "Constrained " : "", in necp_get_result_description()
4564 …(route_rule->exception_if_actions[0] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? interface_names[0] : "", in necp_get_result_description()
4565 (route_rule->exception_if_actions[0] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? " " : "", in necp_get_result_description()
4566 …(route_rule->exception_if_actions[1] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? interface_names[1] : "", in necp_get_result_description()
4567 (route_rule->exception_if_actions[1] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? " " : "", in necp_get_result_description()
4568 …(route_rule->exception_if_actions[2] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? interface_names[2] : "", in necp_get_result_description()
4569 (route_rule->exception_if_actions[2] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? " " : "", in necp_get_result_description()
4570 …(route_rule->exception_if_actions[3] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? interface_names[3] : "", in necp_get_result_description()
4571 (route_rule->exception_if_actions[3] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? " " : "", in necp_get_result_description()
4572 …(route_rule->exception_if_actions[4] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? interface_names[4] : "", in necp_get_result_description()
4573 (route_rule->exception_if_actions[4] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? " " : "", in necp_get_result_description()
4574 …(route_rule->exception_if_actions[5] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? interface_names[5] : "", in necp_get_result_description()
4575 (route_rule->exception_if_actions[5] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? " " : "", in necp_get_result_description()
4576 …(route_rule->exception_if_actions[6] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? interface_names[6] : "", in necp_get_result_description()
4577 (route_rule->exception_if_actions[6] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? " " : "", in necp_get_result_description()
4578 …(route_rule->exception_if_actions[7] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? interface_names[7] : "", in necp_get_result_description()
4579 (route_rule->exception_if_actions[7] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? " " : "", in necp_get_result_description()
4580 …(route_rule->exception_if_actions[8] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? interface_names[8] : "", in necp_get_result_description()
4581 (route_rule->exception_if_actions[8] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? " " : "", in necp_get_result_description()
4582 …(route_rule->exception_if_actions[9] == NECP_ROUTE_RULE_ALLOW_INTERFACE) ? interface_names[9] : ""… in necp_get_result_description()
4586 (route_rule->cellular_action == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!Cell " : "", in necp_get_result_description()
4587 (route_rule->wifi_action == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!WiFi " : "", in necp_get_result_description()
4588 (route_rule->wired_action == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!Wired " : "", in necp_get_result_description()
4589 (route_rule->expensive_action == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!Exp " : "", in necp_get_result_description()
4590 (route_rule->constrained_action == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!Constrained " : "", in necp_get_result_description()
4591 (route_rule->exception_if_actions[0] == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!" : "", in necp_get_result_description()
4592 … (route_rule->exception_if_actions[0] == NECP_ROUTE_RULE_DENY_INTERFACE) ? interface_names[0] : "", in necp_get_result_description()
4593 (route_rule->exception_if_actions[1] == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!" : "", in necp_get_result_description()
4594 … (route_rule->exception_if_actions[1] == NECP_ROUTE_RULE_DENY_INTERFACE) ? interface_names[1] : "", in necp_get_result_description()
4595 (route_rule->exception_if_actions[2] == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!" : "", in necp_get_result_description()
4596 … (route_rule->exception_if_actions[2] == NECP_ROUTE_RULE_DENY_INTERFACE) ? interface_names[2] : "", in necp_get_result_description()
4597 (route_rule->exception_if_actions[3] == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!" : "", in necp_get_result_description()
4598 … (route_rule->exception_if_actions[3] == NECP_ROUTE_RULE_DENY_INTERFACE) ? interface_names[3] : "", in necp_get_result_description()
4599 (route_rule->exception_if_actions[4] == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!" : "", in necp_get_result_description()
4600 … (route_rule->exception_if_actions[4] == NECP_ROUTE_RULE_DENY_INTERFACE) ? interface_names[4] : "", in necp_get_result_description()
4601 (route_rule->exception_if_actions[5] == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!" : "", in necp_get_result_description()
4602 … (route_rule->exception_if_actions[5] == NECP_ROUTE_RULE_DENY_INTERFACE) ? interface_names[5] : "", in necp_get_result_description()
4603 (route_rule->exception_if_actions[6] == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!" : "", in necp_get_result_description()
4604 … (route_rule->exception_if_actions[6] == NECP_ROUTE_RULE_DENY_INTERFACE) ? interface_names[6] : "", in necp_get_result_description()
4605 (route_rule->exception_if_actions[7] == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!" : "", in necp_get_result_description()
4606 … (route_rule->exception_if_actions[7] == NECP_ROUTE_RULE_DENY_INTERFACE) ? interface_names[7] : "", in necp_get_result_description()
4607 (route_rule->exception_if_actions[8] == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!" : "", in necp_get_result_description()
4608 … (route_rule->exception_if_actions[8] == NECP_ROUTE_RULE_DENY_INTERFACE) ? interface_names[8] : "", in necp_get_result_description()
4609 (route_rule->exception_if_actions[9] == NECP_ROUTE_RULE_DENY_INTERFACE) ? "!" : "", in necp_get_result_description()
4610 …(route_rule->exception_if_actions[9] == NECP_ROUTE_RULE_DENY_INTERFACE) ? interface_names[9] : ""); in necp_get_result_description()
4614 (route_rule->cellular_action == NECP_ROUTE_RULE_QOS_MARKING) ? "Cell " : "", in necp_get_result_description()
4615 (route_rule->wifi_action == NECP_ROUTE_RULE_QOS_MARKING) ? "WiFi " : "", in necp_get_result_description()
4616 (route_rule->wired_action == NECP_ROUTE_RULE_QOS_MARKING) ? "Wired " : "", in necp_get_result_description()
4617 (route_rule->expensive_action == NECP_ROUTE_RULE_QOS_MARKING) ? "Exp " : "", in necp_get_result_description()
4618 (route_rule->constrained_action == NECP_ROUTE_RULE_QOS_MARKING) ? "Constrained " : "", in necp_get_result_description()
4619 … (route_rule->exception_if_actions[0] == NECP_ROUTE_RULE_QOS_MARKING) ? interface_names[0] : "", in necp_get_result_description()
4620 (route_rule->exception_if_actions[0] == NECP_ROUTE_RULE_QOS_MARKING) ? " " : "", in necp_get_result_description()
4621 … (route_rule->exception_if_actions[1] == NECP_ROUTE_RULE_QOS_MARKING) ? interface_names[1] : "", in necp_get_result_description()
4622 (route_rule->exception_if_actions[1] == NECP_ROUTE_RULE_QOS_MARKING) ? " " : "", in necp_get_result_description()
4623 … (route_rule->exception_if_actions[2] == NECP_ROUTE_RULE_QOS_MARKING) ? interface_names[2] : "", in necp_get_result_description()
4624 (route_rule->exception_if_actions[2] == NECP_ROUTE_RULE_QOS_MARKING) ? " " : "", in necp_get_result_description()
4625 … (route_rule->exception_if_actions[3] == NECP_ROUTE_RULE_QOS_MARKING) ? interface_names[3] : "", in necp_get_result_description()
4626 (route_rule->exception_if_actions[3] == NECP_ROUTE_RULE_QOS_MARKING) ? " " : "", in necp_get_result_description()
4627 … (route_rule->exception_if_actions[4] == NECP_ROUTE_RULE_QOS_MARKING) ? interface_names[4] : "", in necp_get_result_description()
4628 (route_rule->exception_if_actions[4] == NECP_ROUTE_RULE_QOS_MARKING) ? " " : "", in necp_get_result_description()
4629 … (route_rule->exception_if_actions[5] == NECP_ROUTE_RULE_QOS_MARKING) ? interface_names[5] : "", in necp_get_result_description()
4630 (route_rule->exception_if_actions[5] == NECP_ROUTE_RULE_QOS_MARKING) ? " " : "", in necp_get_result_description()
4631 … (route_rule->exception_if_actions[6] == NECP_ROUTE_RULE_QOS_MARKING) ? interface_names[6] : "", in necp_get_result_description()
4632 (route_rule->exception_if_actions[6] == NECP_ROUTE_RULE_QOS_MARKING) ? " " : "", in necp_get_result_description()
4633 … (route_rule->exception_if_actions[7] == NECP_ROUTE_RULE_QOS_MARKING) ? interface_names[7] : "", in necp_get_result_description()
4634 (route_rule->exception_if_actions[7] == NECP_ROUTE_RULE_QOS_MARKING) ? " " : "", in necp_get_result_description()
4635 … (route_rule->exception_if_actions[8] == NECP_ROUTE_RULE_QOS_MARKING) ? interface_names[8] : "", in necp_get_result_description()
4636 (route_rule->exception_if_actions[8] == NECP_ROUTE_RULE_QOS_MARKING) ? " " : "", in necp_get_result_description()
4637 … (route_rule->exception_if_actions[9] == NECP_ROUTE_RULE_QOS_MARKING) ? interface_names[9] : ""); in necp_get_result_description()
10223 struct necp_route_rule *route_rule = NULL; in necp_update_qos_marking() local
10225 route_rule = necp_lookup_route_rule_locked(&necp_route_rules, route_rule_id); in necp_update_qos_marking()
10226 if (route_rule == NULL) { in necp_update_qos_marking()
10231 if (route_rule->match_netagent_id != 0) { in necp_update_qos_marking()
10238 if (route_rule->match_netagent_id == netagent_array[agent_index]) { in necp_update_qos_marking()
10249 qos_marking = (route_rule->default_action == NECP_ROUTE_RULE_QOS_MARKING) ? TRUE : FALSE; in necp_update_qos_marking()
10256 if (route_rule->exception_if_indices[exception_index] == 0) { in necp_update_qos_marking()
10259 if (route_rule->exception_if_actions[exception_index] != NECP_ROUTE_RULE_QOS_MARKING) { in necp_update_qos_marking()
10262 if (route_rule->exception_if_indices[exception_index] == ifp->if_index) { in necp_update_qos_marking()
10266 route_rule->exception_if_indices[exception_index], route_rule_id, qos_marking); in necp_update_qos_marking()
10272 if ((route_rule->cellular_action == NECP_ROUTE_RULE_QOS_MARKING && IFNET_IS_CELLULAR(ifp)) || in necp_update_qos_marking()
10273 (route_rule->wifi_action == NECP_ROUTE_RULE_QOS_MARKING && IFNET_IS_WIFI(ifp)) || in necp_update_qos_marking()
10274 (route_rule->wired_action == NECP_ROUTE_RULE_QOS_MARKING && IFNET_IS_WIRED(ifp)) || in necp_update_qos_marking()
10275 (route_rule->expensive_action == NECP_ROUTE_RULE_QOS_MARKING && IFNET_IS_EXPENSIVE(ifp)) || in necp_update_qos_marking()
10276 (route_rule->constrained_action == NECP_ROUTE_RULE_QOS_MARKING && IFNET_IS_CONSTRAINED(ifp))) { in necp_update_qos_marking()
10280 route_rule->cellular_action, route_rule->wifi_action, route_rule->wired_action, in necp_update_qos_marking()
10281 route_rule->expensive_action, route_rule->constrained_action, route_rule_id, qos_marking); in necp_update_qos_marking()
10399 struct necp_route_rule *route_rule = NULL; in necp_route_is_allowed_inner() local
10401 route_rule = necp_lookup_route_rule_locked(&necp_route_rules, route_rule_id); in necp_route_is_allowed_inner()
10402 if (route_rule == NULL) { in necp_route_is_allowed_inner()
10406 if (route_rule->match_netagent_id != 0) { in necp_route_is_allowed_inner()
10413 if (route_rule->match_netagent_id == netagent_array[agent_index]) { in necp_route_is_allowed_inner()
10424 default_is_allowed = (route_rule->default_action == NECP_ROUTE_RULE_DENY_INTERFACE) ? FALSE : TRUE; in necp_route_is_allowed_inner()
10437 if (route_rule->exception_if_indices[exception_index] == 0) { in necp_route_is_allowed_inner()
10440 if (route_rule->exception_if_indices[exception_index] == ifp->if_index || in necp_route_is_allowed_inner()
10441 …(delegated_ifp != NULL && route_rule->exception_if_indices[exception_index] == delegated_ifp->if_i… in necp_route_is_allowed_inner()
10442 if (route_rule->exception_if_actions[exception_index] == NECP_ROUTE_RULE_DENY_LQM_ABORT) { in necp_route_is_allowed_inner()
10446 route_rule->exception_if_indices[exception_index], route_rule_id); in necp_route_is_allowed_inner()
10449 } else if (IS_NECP_ROUTE_RULE_ALLOW_OR_DENY(route_rule->exception_if_actions[exception_index])) { in necp_route_is_allowed_inner()
10451 …ce match %d for Rule %d Allowed %d", route_rule->exception_if_indices[exception_index], route_rule… in necp_route_is_allowed_inner()
10453 …return (route_rule->exception_if_actions[exception_index] == NECP_ROUTE_RULE_DENY_INTERFACE) ? FAL… in necp_route_is_allowed_inner()
10459 if (route_rule->cellular_action == NECP_ROUTE_RULE_DENY_LQM_ABORT) { in necp_route_is_allowed_inner()
10467 } else if (IS_NECP_ROUTE_RULE_ALLOW_OR_DENY(route_rule->cellular_action)) { in necp_route_is_allowed_inner()
10473 route_rule->cellular_action == NECP_ROUTE_RULE_DENY_INTERFACE)) { in necp_route_is_allowed_inner()
10475 type_aggregate_action = route_rule->cellular_action; in necp_route_is_allowed_inner()
10481 if (route_rule->wifi_action == NECP_ROUTE_RULE_DENY_LQM_ABORT) { in necp_route_is_allowed_inner()
10489 } else if (IS_NECP_ROUTE_RULE_ALLOW_OR_DENY(route_rule->wifi_action)) { in necp_route_is_allowed_inner()
10495 route_rule->wifi_action == NECP_ROUTE_RULE_DENY_INTERFACE)) { in necp_route_is_allowed_inner()
10497 type_aggregate_action = route_rule->wifi_action; in necp_route_is_allowed_inner()
10503 if (route_rule->wired_action == NECP_ROUTE_RULE_DENY_LQM_ABORT) { in necp_route_is_allowed_inner()
10511 } else if (IS_NECP_ROUTE_RULE_ALLOW_OR_DENY(route_rule->wired_action)) { in necp_route_is_allowed_inner()
10517 route_rule->wired_action == NECP_ROUTE_RULE_DENY_INTERFACE)) { in necp_route_is_allowed_inner()
10519 type_aggregate_action = route_rule->wired_action; in necp_route_is_allowed_inner()
10525 if (route_rule->expensive_action == NECP_ROUTE_RULE_DENY_LQM_ABORT) { in necp_route_is_allowed_inner()
10530 } else if (IS_NECP_ROUTE_RULE_ALLOW_OR_DENY(route_rule->expensive_action)) { in necp_route_is_allowed_inner()
10533 route_rule->expensive_action == NECP_ROUTE_RULE_DENY_INTERFACE)) { in necp_route_is_allowed_inner()
10535 type_aggregate_action = route_rule->expensive_action; in necp_route_is_allowed_inner()
10541 if (route_rule->constrained_action == NECP_ROUTE_RULE_DENY_LQM_ABORT) { in necp_route_is_allowed_inner()
10546 } else if (IS_NECP_ROUTE_RULE_ALLOW_OR_DENY(route_rule->constrained_action)) { in necp_route_is_allowed_inner()
10549 route_rule->constrained_action == NECP_ROUTE_RULE_DENY_INTERFACE)) { in necp_route_is_allowed_inner()
10551 type_aggregate_action = route_rule->constrained_action; in necp_route_is_allowed_inner()
10558 … E:%d for Rule %d Allowed %d", route_rule->cellular_action, route_rule->wifi_action, route_rule->w… in necp_route_is_allowed_inner()
10604 …struct necp_route_rule *route_rule = necp_lookup_route_rule_locked(&necp_route_rules, route_rule_i… in necp_route_rule_matches_agents() local
10605 if (route_rule == NULL) { in necp_route_rule_matches_agents()
10609 return route_rule->match_netagent_id != 0; in necp_route_rule_matches_agents()
10619 …struct necp_route_rule *route_rule = necp_lookup_route_rule_locked(&necp_route_rules, route_rule_i… in necp_route_get_netagent() local
10620 if (route_rule == NULL) { in necp_route_get_netagent()
10625 if (route_rule->netagent_id == 0) { in necp_route_get_netagent()
10629 if (route_rule->match_netagent_id != 0) { in necp_route_get_netagent()
10636 if (route_rule->match_netagent_id == netagent_array[agent_index]) { in necp_route_get_netagent()
10650 if (route_rule->default_action == NECP_ROUTE_RULE_USE_NETAGENT || in necp_route_get_netagent()
10651 route_rule->default_action == NECP_ROUTE_RULE_REMOVE_NETAGENT) { in necp_route_get_netagent()
10652 *remove = (route_rule->default_action == NECP_ROUTE_RULE_REMOVE_NETAGENT); in necp_route_get_netagent()
10653 return route_rule->netagent_id; in necp_route_get_netagent()
10659 if (route_rule->exception_if_indices[exception_index] == 0) { in necp_route_get_netagent()
10662 if (route_rule->exception_if_indices[exception_index] == ifp->if_index && in necp_route_get_netagent()
10663 route_rule->exception_if_actions[exception_index] != NECP_ROUTE_RULE_NONE) { in necp_route_get_netagent()
10664 if (route_rule->exception_if_actions[exception_index] == NECP_ROUTE_RULE_USE_NETAGENT || in necp_route_get_netagent()
10665 route_rule->exception_if_actions[exception_index] == NECP_ROUTE_RULE_REMOVE_NETAGENT) { in necp_route_get_netagent()
10666 … *remove = (route_rule->exception_if_actions[exception_index] == NECP_ROUTE_RULE_REMOVE_NETAGENT); in necp_route_get_netagent()
10667 return route_rule->netagent_id; in necp_route_get_netagent()
10674 route_rule->cellular_action != NECP_ROUTE_RULE_NONE) { in necp_route_get_netagent()
10675 if (route_rule->cellular_action == NECP_ROUTE_RULE_USE_NETAGENT || in necp_route_get_netagent()
10676 route_rule->cellular_action == NECP_ROUTE_RULE_REMOVE_NETAGENT) { in necp_route_get_netagent()
10677 *remove = (route_rule->cellular_action == NECP_ROUTE_RULE_REMOVE_NETAGENT); in necp_route_get_netagent()
10678 return route_rule->netagent_id; in necp_route_get_netagent()
10684 route_rule->wifi_action != NECP_ROUTE_RULE_NONE) { in necp_route_get_netagent()
10685 if ((route_rule->wifi_action == NECP_ROUTE_RULE_USE_NETAGENT || in necp_route_get_netagent()
10686 route_rule->wifi_action == NECP_ROUTE_RULE_REMOVE_NETAGENT)) { in necp_route_get_netagent()
10687 *remove = (route_rule->wifi_action == NECP_ROUTE_RULE_REMOVE_NETAGENT); in necp_route_get_netagent()
10688 return route_rule->netagent_id; in necp_route_get_netagent()
10694 route_rule->wired_action != NECP_ROUTE_RULE_NONE) { in necp_route_get_netagent()
10695 if ((route_rule->wired_action == NECP_ROUTE_RULE_USE_NETAGENT || in necp_route_get_netagent()
10696 route_rule->wired_action == NECP_ROUTE_RULE_REMOVE_NETAGENT)) { in necp_route_get_netagent()
10697 *remove = (route_rule->wired_action == NECP_ROUTE_RULE_REMOVE_NETAGENT); in necp_route_get_netagent()
10698 return route_rule->netagent_id; in necp_route_get_netagent()
10704 route_rule->expensive_action != NECP_ROUTE_RULE_NONE) { in necp_route_get_netagent()
10705 if (route_rule->expensive_action == NECP_ROUTE_RULE_USE_NETAGENT || in necp_route_get_netagent()
10706 route_rule->expensive_action == NECP_ROUTE_RULE_REMOVE_NETAGENT) { in necp_route_get_netagent()
10707 *remove = (route_rule->expensive_action == NECP_ROUTE_RULE_REMOVE_NETAGENT); in necp_route_get_netagent()
10708 return route_rule->netagent_id; in necp_route_get_netagent()
10714 route_rule->constrained_action != NECP_ROUTE_RULE_NONE) { in necp_route_get_netagent()
10715 if (route_rule->constrained_action == NECP_ROUTE_RULE_USE_NETAGENT || in necp_route_get_netagent()
10716 route_rule->constrained_action == NECP_ROUTE_RULE_REMOVE_NETAGENT) { in necp_route_get_netagent()
10717 *remove = (route_rule->constrained_action == NECP_ROUTE_RULE_REMOVE_NETAGENT); in necp_route_get_netagent()
10718 return route_rule->netagent_id; in necp_route_get_netagent()
10724 if (route_rule->default_action == NECP_ROUTE_RULE_USE_NETAGENT || in necp_route_get_netagent()
10725 route_rule->default_action == NECP_ROUTE_RULE_REMOVE_NETAGENT) { in necp_route_get_netagent()
10726 *remove = (route_rule->default_action == NECP_ROUTE_RULE_REMOVE_NETAGENT); in necp_route_get_netagent()
10727 return route_rule->netagent_id; in necp_route_get_netagent()
10736 …struct necp_route_rule *route_rule = necp_lookup_route_rule_locked(&necp_route_rules, route_rule_i… in necp_route_get_flow_divert_inner() local
10737 if (route_rule == NULL) { in necp_route_get_flow_divert_inner()
10742 if (route_rule->control_unit == 0) { in necp_route_get_flow_divert_inner()
10746 if (route_rule->match_netagent_id != 0) { in necp_route_get_flow_divert_inner()
10753 if (route_rule->match_netagent_id == netagent_array[agent_index]) { in necp_route_get_flow_divert_inner()
10767 if (route_rule->default_action == NECP_ROUTE_RULE_DIVERT_SOCKET) { in necp_route_get_flow_divert_inner()
10768 return route_rule->control_unit; in necp_route_get_flow_divert_inner()
10774 if (route_rule->exception_if_indices[exception_index] == 0) { in necp_route_get_flow_divert_inner()
10777 if (route_rule->exception_if_indices[exception_index] == ifp->if_index && in necp_route_get_flow_divert_inner()
10778 route_rule->exception_if_actions[exception_index] != NECP_ROUTE_RULE_NONE) { in necp_route_get_flow_divert_inner()
10779 if (route_rule->exception_if_actions[exception_index] == NECP_ROUTE_RULE_DIVERT_SOCKET) { in necp_route_get_flow_divert_inner()
10780 return route_rule->control_unit; in necp_route_get_flow_divert_inner()
10787 route_rule->cellular_action != NECP_ROUTE_RULE_NONE) { in necp_route_get_flow_divert_inner()
10788 if (route_rule->cellular_action == NECP_ROUTE_RULE_DIVERT_SOCKET) { in necp_route_get_flow_divert_inner()
10789 return route_rule->control_unit; in necp_route_get_flow_divert_inner()
10795 route_rule->wifi_action == NECP_ROUTE_RULE_DIVERT_SOCKET) { in necp_route_get_flow_divert_inner()
10796 if (route_rule->wifi_action == NECP_ROUTE_RULE_DIVERT_SOCKET) { in necp_route_get_flow_divert_inner()
10797 return route_rule->control_unit; in necp_route_get_flow_divert_inner()
10803 route_rule->wired_action != NECP_ROUTE_RULE_NONE) { in necp_route_get_flow_divert_inner()
10804 if (route_rule->wired_action == NECP_ROUTE_RULE_DIVERT_SOCKET) { in necp_route_get_flow_divert_inner()
10805 return route_rule->control_unit; in necp_route_get_flow_divert_inner()
10811 route_rule->expensive_action != NECP_ROUTE_RULE_NONE) { in necp_route_get_flow_divert_inner()
10812 if (route_rule->expensive_action == NECP_ROUTE_RULE_DIVERT_SOCKET) { in necp_route_get_flow_divert_inner()
10813 return route_rule->control_unit; in necp_route_get_flow_divert_inner()
10819 route_rule->constrained_action != NECP_ROUTE_RULE_NONE) { in necp_route_get_flow_divert_inner()
10820 if (route_rule->constrained_action == NECP_ROUTE_RULE_DIVERT_SOCKET) { in necp_route_get_flow_divert_inner()
10821 return route_rule->control_unit; in necp_route_get_flow_divert_inner()
10827 if (route_rule->default_action == NECP_ROUTE_RULE_DIVERT_SOCKET) { in necp_route_get_flow_divert_inner()
10828 return route_rule->control_unit; in necp_route_get_flow_divert_inner()