Lines Matching refs:mask
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()
317 { &FRATTR_FWMARK, mask ? sizeof(FRATTR_FWMARK) : 0 }, in modifyIpRule()
318 { &fwmark, mask ? sizeof(fwmark) : 0 }, in modifyIpRule()
319 { &FRATTR_FWMASK, mask ? sizeof(FRATTR_FWMASK) : 0 }, in modifyIpRule()
320 { &mask, mask ? sizeof(mask) : 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()
481 const uint32_t mask = ~Fwmark::getUidBillingMask(); in modifyIncomingPacketMark() local
485 RouteController::LOCAL_MANGLE_INPUT, interface, fwmark.intValue, mask); in modifyIncomingPacketMark()
512 Fwmark mask; in modifyVpnUidRangeRule() local
515 mask.protectedFromVpn = true; in modifyVpnUidRangeRule()
525 mask.explicitlySelected = true; in modifyVpnUidRangeRule()
529 mask.intValue, IIF_LOOPBACK, OIF_NONE, uidStart, uidEnd); in modifyVpnUidRangeRule()
540 Fwmark mask; in modifyVpnSystemPermissionRule() local
543 mask.netId = FWMARK_NET_ID_MASK; in modifyVpnSystemPermissionRule()
546 mask.permission = PERMISSION_SYSTEM; in modifyVpnSystemPermissionRule()
551 mask.intValue); in modifyVpnSystemPermissionRule()
565 Fwmark mask; in modifyExplicitNetworkRule() local
568 mask.netId = FWMARK_NET_ID_MASK; in modifyExplicitNetworkRule()
571 mask.explicitlySelected = true; in modifyExplicitNetworkRule()
574 mask.permission = permission; in modifyExplicitNetworkRule()
577 fwmark.intValue, mask.intValue, IIF_LOOPBACK, OIF_NONE, uidStart, uidEnd); in modifyExplicitNetworkRule()
588 Fwmark mask; in modifyOutputInterfaceRules() local
591 mask.permission = permission; in modifyOutputInterfaceRules()
605 fwmark.intValue, mask.intValue, IIF_LOOPBACK, interface, uidStart, uidEnd); in modifyOutputInterfaceRules()
615 Fwmark mask; in modifyImplicitNetworkRule() local
618 mask.netId = FWMARK_NET_ID_MASK; in modifyImplicitNetworkRule()
621 mask.explicitlySelected = true; in modifyImplicitNetworkRule()
624 mask.permission = PERMISSION_NONE; in modifyImplicitNetworkRule()
627 fwmark.intValue, mask.intValue, IIF_LOOPBACK, OIF_NONE, INVALID_UID, in modifyImplicitNetworkRule()
644 Fwmark mask; in modifyVpnFallthroughRule() local
647 mask.netId = FWMARK_NET_ID_MASK; in modifyVpnFallthroughRule()
650 mask.permission = permission; in modifyVpnFallthroughRule()
653 mask.intValue); in modifyVpnFallthroughRule()
659 Fwmark mask; in addLegacyRouteRules() local
662 mask.explicitlySelected = true; in addLegacyRouteRules()
666 fwmark.intValue, mask.intValue)) { in addLegacyRouteRules()
670 ROUTE_TABLE_LEGACY_NETWORK, fwmark.intValue, mask.intValue)) { in addLegacyRouteRules()
675 mask.permission = PERMISSION_SYSTEM; in addLegacyRouteRules()
679 fwmark.intValue, mask.intValue); in addLegacyRouteRules()
690 Fwmark mask; in addLocalNetworkRules() local
693 mask.explicitlySelected = true; in addLocalNetworkRules()
696 fwmark.intValue, mask.intValue); in addLocalNetworkRules()
800 Fwmark mask; in modifyRejectNonSecureNetworkRule() local
802 mask.protectedFromVpn = true; in modifyRejectNonSecureNetworkRule()
806 FR_ACT_PROHIBIT, RT_TABLE_UNSPEC, fwmark.intValue, mask.intValue, in modifyRejectNonSecureNetworkRule()
861 Fwmark mask; in modifyDefaultNetwork() local
864 mask.netId = FWMARK_NET_ID_MASK; in modifyDefaultNetwork()
867 mask.permission = permission; in modifyDefaultNetwork()
870 mask.intValue, IIF_LOOPBACK, OIF_NONE, INVALID_UID, INVALID_UID); in modifyDefaultNetwork()