Lines Matching refs:netId

472 int modifyIncomingPacketMark(unsigned netId, const char* interface, Permission permission,  in modifyIncomingPacketMark()  argument
476 fwmark.netId = netId; in modifyIncomingPacketMark()
537 [[nodiscard]] static int modifyVpnSystemPermissionRule(unsigned netId, uint32_t table, bool secure, in modifyVpnSystemPermissionRule() argument
542 fwmark.netId = netId; in modifyVpnSystemPermissionRule()
543 mask.netId = FWMARK_NET_ID_MASK; in modifyVpnSystemPermissionRule()
561 [[nodiscard]] static int modifyExplicitNetworkRule(unsigned netId, uint32_t table, in modifyExplicitNetworkRule() argument
567 fwmark.netId = netId; in modifyExplicitNetworkRule()
568 mask.netId = FWMARK_NET_ID_MASK; in modifyExplicitNetworkRule()
613 [[nodiscard]] static int modifyImplicitNetworkRule(unsigned netId, uint32_t table, bool add) { in modifyImplicitNetworkRule() argument
617 fwmark.netId = netId; in modifyImplicitNetworkRule()
618 mask.netId = FWMARK_NET_ID_MASK; in modifyImplicitNetworkRule()
646 fwmark.netId = vpnNetId; in modifyVpnFallthroughRule()
647 mask.netId = FWMARK_NET_ID_MASK; in modifyVpnFallthroughRule()
744 [[nodiscard]] static int modifyLocalNetwork(unsigned netId, const char* interface, bool add) { in modifyLocalNetwork() argument
745 if (int ret = modifyIncomingPacketMark(netId, interface, PERMISSION_NONE, add)) { in modifyLocalNetwork()
753 int RouteController::modifyPhysicalNetwork(unsigned netId, const char* interface, in modifyPhysicalNetwork() argument
760 if (int ret = modifyIncomingPacketMark(netId, interface, permission, add)) { in modifyPhysicalNetwork()
763 if (int ret = modifyExplicitNetworkRule(netId, table, permission, INVALID_UID, INVALID_UID, in modifyPhysicalNetwork()
793 return modifyImplicitNetworkRule(netId, table, add); in modifyPhysicalNetwork()
815 int RouteController::modifyVirtualNetwork(unsigned netId, const char* interface, in modifyVirtualNetwork() argument
827 if (int ret = modifyExplicitNetworkRule(netId, table, PERMISSION_NONE, range.start, in modifyVirtualNetwork()
838 if (int ret = modifyIncomingPacketMark(netId, interface, PERMISSION_NONE, add)) { in modifyVirtualNetwork()
844 if (int ret = modifyVpnSystemPermissionRule(netId, table, secure, add)) { in modifyVirtualNetwork()
847 return modifyExplicitNetworkRule(netId, table, PERMISSION_NONE, UID_ROOT, UID_ROOT, add); in modifyVirtualNetwork()
863 fwmark.netId = NETID_UNSET; in modifyDefaultNetwork()
864 mask.netId = FWMARK_NET_ID_MASK; in modifyDefaultNetwork()
1031 int RouteController::addInterfaceToLocalNetwork(unsigned netId, const char* interface) { in addInterfaceToLocalNetwork() argument
1032 if (int ret = modifyLocalNetwork(netId, interface, ACTION_ADD)) { in addInterfaceToLocalNetwork()
1040 int RouteController::removeInterfaceFromLocalNetwork(unsigned netId, const char* interface) { in removeInterfaceFromLocalNetwork() argument
1041 if (int ret = modifyLocalNetwork(netId, interface, ACTION_DEL)) { in removeInterfaceFromLocalNetwork()
1049 int RouteController::addInterfaceToPhysicalNetwork(unsigned netId, const char* interface, in addInterfaceToPhysicalNetwork() argument
1051 if (int ret = modifyPhysicalNetwork(netId, interface, permission, ACTION_ADD)) { in addInterfaceToPhysicalNetwork()
1059 int RouteController::removeInterfaceFromPhysicalNetwork(unsigned netId, const char* interface, in removeInterfaceFromPhysicalNetwork() argument
1061 if (int ret = modifyPhysicalNetwork(netId, interface, permission, ACTION_DEL)) { in removeInterfaceFromPhysicalNetwork()
1075 int RouteController::addInterfaceToVirtualNetwork(unsigned netId, const char* interface, in addInterfaceToVirtualNetwork() argument
1077 if (int ret = modifyVirtualNetwork(netId, interface, uidRanges, secure, ACTION_ADD, in addInterfaceToVirtualNetwork()
1085 int RouteController::removeInterfaceFromVirtualNetwork(unsigned netId, const char* interface, in removeInterfaceFromVirtualNetwork() argument
1087 if (int ret = modifyVirtualNetwork(netId, interface, uidRanges, secure, ACTION_DEL, in removeInterfaceFromVirtualNetwork()
1098 int RouteController::modifyPhysicalNetworkPermission(unsigned netId, const char* interface, in modifyPhysicalNetworkPermission() argument
1102 if (int ret = modifyPhysicalNetwork(netId, interface, newPermission, ACTION_ADD)) { in modifyPhysicalNetworkPermission()
1105 return modifyPhysicalNetwork(netId, interface, oldPermission, ACTION_DEL); in modifyPhysicalNetworkPermission()
1116 int RouteController::addUsersToVirtualNetwork(unsigned netId, const char* interface, bool secure, in addUsersToVirtualNetwork() argument
1118 return modifyVirtualNetwork(netId, interface, uidRanges, secure, ACTION_ADD, in addUsersToVirtualNetwork()
1122 int RouteController::removeUsersFromVirtualNetwork(unsigned netId, const char* interface, in removeUsersFromVirtualNetwork() argument
1124 return modifyVirtualNetwork(netId, interface, uidRanges, secure, ACTION_DEL, in removeUsersFromVirtualNetwork()