Lines Matching refs:priority
268 [[nodiscard]] static int modifyIpRule(uint16_t action, int32_t priority, uint8_t ruleType, in modifyIpRule() argument
272 if (priority < 0) { in modifyIpRule()
273 ALOGE("invalid IP-rule priority %d", priority); in modifyIpRule()
326 { &priority, sizeof(priority) }, in modifyIpRule()
347 if (!(action == RTM_DELRULE && ret == -ENOENT && priority == RULE_PRIORITY_TETHERING)) { in modifyIpRule()
360 [[nodiscard]] static int modifyIpRule(uint16_t action, int32_t priority, uint32_t table, in modifyIpRule() argument
363 return modifyIpRule(action, priority, FR_ACT_TO_TBL, table, fwmark, mask, iif, oif, uidStart, in modifyIpRule()
367 [[nodiscard]] static int modifyIpRule(uint16_t action, int32_t priority, uint32_t table, in modifyIpRule() argument
369 return modifyIpRule(action, priority, table, fwmark, mask, IIF_NONE, OIF_NONE, INVALID_UID, in modifyIpRule()
376 const char* destination, const char* nexthop, uint32_t mtu, uint32_t priority) { in modifyIpRoute() argument
458 {&RTATTR_PRIO, priority != 0 ? sizeof(RTATTR_PRIO) : 0}, in modifyIpRoute()
459 {&priority, priority != 0 ? sizeof(priority) : 0}, in modifyIpRoute()
529 int32_t priority; in modifyVpnUidRangeRule() local
532 priority = RULE_PRIORITY_SECURE_VPN; in modifyVpnUidRangeRule()
534 priority = excludeLocalRoutes ? RULE_PRIORITY_BYPASSABLE_VPN_LOCAL_EXCLUSION in modifyVpnUidRangeRule()
541 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, priority + subPriority, table, in modifyVpnUidRangeRule()
561 uint32_t priority; in modifyVpnSystemPermissionRule() local
564 priority = RULE_PRIORITY_SECURE_VPN; in modifyVpnSystemPermissionRule()
566 priority = excludeLocalRoutes ? RULE_PRIORITY_BYPASSABLE_VPN_LOCAL_EXCLUSION in modifyVpnSystemPermissionRule()
570 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, priority, table, fwmark.intValue, in modifyVpnSystemPermissionRule()
1168 int mtu, int priority, bool isLocal) { in modifyRoute() argument
1192 int ret = modifyIpRoute(action, flags, table, interface, destination, nexthop, mtu, priority); in modifyRoute()
1470 TableType tableType, int mtu, int priority) { in addRoute() argument
1472 nexthop, tableType, mtu, priority, false /* isLocal */)) { in addRoute()
1478 nexthop, tableType, mtu, priority, true /* isLocal */); in addRoute()
1485 const char* nexthop, TableType tableType, int priority) { in removeRoute() argument
1487 tableType, 0 /* mtu */, priority, false /* isLocal */)) { in removeRoute()
1493 tableType, 0 /* mtu */, priority, true /* isLocal */); in removeRoute()