Lines Matching refs:fwmark
262 uint32_t table, uint32_t fwmark, uint32_t mask, in modifyIpRule() argument
266 if (fwmark & ~mask) { in modifyIpRule()
267 ALOGE("mask 0x%x does not select all the bits set in fwmark 0x%x", mask, fwmark); in modifyIpRule()
318 { &fwmark, mask ? sizeof(fwmark) : 0 }, in modifyIpRule()
349 uint32_t fwmark, uint32_t mask, const char* iif, in modifyIpRule() argument
351 return modifyIpRule(action, priority, FR_ACT_TO_TBL, table, fwmark, mask, iif, oif, uidStart, in modifyIpRule()
356 uint32_t fwmark, uint32_t mask) { in modifyIpRule() argument
357 return modifyIpRule(action, priority, table, fwmark, mask, IIF_NONE, OIF_NONE, INVALID_UID, in modifyIpRule()
474 Fwmark fwmark; in modifyIncomingPacketMark() local
476 fwmark.netId = netId; in modifyIncomingPacketMark()
477 fwmark.explicitlySelected = true; in modifyIncomingPacketMark()
478 fwmark.protectedFromVpn = true; in modifyIncomingPacketMark()
479 fwmark.permission = permission; in modifyIncomingPacketMark()
485 RouteController::LOCAL_MANGLE_INPUT, interface, fwmark.intValue, mask); in modifyIncomingPacketMark()
511 Fwmark fwmark; in modifyVpnUidRangeRule() local
514 fwmark.protectedFromVpn = false; in modifyVpnUidRangeRule()
524 fwmark.explicitlySelected = false; in modifyVpnUidRangeRule()
528 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, priority, table, fwmark.intValue, in modifyVpnUidRangeRule()
539 Fwmark fwmark; in modifyVpnSystemPermissionRule() local
542 fwmark.netId = netId; in modifyVpnSystemPermissionRule()
545 fwmark.permission = PERMISSION_SYSTEM; in modifyVpnSystemPermissionRule()
550 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, priority, table, fwmark.intValue, in modifyVpnSystemPermissionRule()
564 Fwmark fwmark; in modifyExplicitNetworkRule() local
567 fwmark.netId = netId; in modifyExplicitNetworkRule()
570 fwmark.explicitlySelected = true; in modifyExplicitNetworkRule()
573 fwmark.permission = permission; in modifyExplicitNetworkRule()
577 fwmark.intValue, mask.intValue, IIF_LOOPBACK, OIF_NONE, uidStart, uidEnd); in modifyExplicitNetworkRule()
587 Fwmark fwmark; in modifyOutputInterfaceRules() local
590 fwmark.permission = permission; in modifyOutputInterfaceRules()
605 fwmark.intValue, mask.intValue, IIF_LOOPBACK, interface, uidStart, uidEnd); in modifyOutputInterfaceRules()
614 Fwmark fwmark; in modifyImplicitNetworkRule() local
617 fwmark.netId = netId; in modifyImplicitNetworkRule()
620 fwmark.explicitlySelected = false; in modifyImplicitNetworkRule()
623 fwmark.permission = PERMISSION_NONE; in modifyImplicitNetworkRule()
627 fwmark.intValue, mask.intValue, IIF_LOOPBACK, OIF_NONE, INVALID_UID, in modifyImplicitNetworkRule()
643 Fwmark fwmark; in modifyVpnFallthroughRule() local
646 fwmark.netId = vpnNetId; in modifyVpnFallthroughRule()
649 fwmark.permission = permission; in modifyVpnFallthroughRule()
652 return modifyIpRule(action, RULE_PRIORITY_VPN_FALLTHROUGH, table, fwmark.intValue, in modifyVpnFallthroughRule()
658 Fwmark fwmark; in addLegacyRouteRules() local
661 fwmark.explicitlySelected = false; in addLegacyRouteRules()
666 fwmark.intValue, mask.intValue)) { in addLegacyRouteRules()
670 ROUTE_TABLE_LEGACY_NETWORK, fwmark.intValue, mask.intValue)) { in addLegacyRouteRules()
674 fwmark.permission = PERMISSION_SYSTEM; in addLegacyRouteRules()
679 fwmark.intValue, mask.intValue); in addLegacyRouteRules()
689 Fwmark fwmark; in addLocalNetworkRules() local
692 fwmark.explicitlySelected = false; in addLocalNetworkRules()
696 fwmark.intValue, mask.intValue); in addLocalNetworkRules()
799 Fwmark fwmark; in modifyRejectNonSecureNetworkRule() local
801 fwmark.protectedFromVpn = false; in modifyRejectNonSecureNetworkRule()
806 FR_ACT_PROHIBIT, RT_TABLE_UNSPEC, fwmark.intValue, mask.intValue, in modifyRejectNonSecureNetworkRule()
860 Fwmark fwmark; in modifyDefaultNetwork() local
863 fwmark.netId = NETID_UNSET; in modifyDefaultNetwork()
866 fwmark.permission = permission; in modifyDefaultNetwork()
869 return modifyIpRule(action, RULE_PRIORITY_DEFAULT_NETWORK, table, fwmark.intValue, in modifyDefaultNetwork()