Android-cuttlefish cvd tool
Namespaces | Functions
alloc_utils.cpp File Reference
#include "alloc_utils.h"
#include <cstdint>
#include <fstream>
#include "android-base/logging.h"
Include dependency graph for alloc_utils.cpp:

Namespaces

namespace  cuttlefish
 

Functions

int cuttlefish::RunExternalCommand (const std::string &command)
 
bool cuttlefish::AddTapIface (const std::string &name)
 
bool cuttlefish::ShutdownIface (const std::string &name)
 
bool cuttlefish::BringUpIface (const std::string &name)
 
bool cuttlefish::CreateEthernetIface (const std::string &name, const std::string &bridge_name, bool has_ipv4_bridge, bool has_ipv6_bridge, bool use_ebtables_legacy)
 
std::string cuttlefish::MobileGatewayName (const std::string &ipaddr, uint16_t id)
 
std::string cuttlefish::MobileNetworkName (const std::string &ipaddr, const std::string &netmask, uint16_t id)
 
bool cuttlefish::CreateMobileIface (const std::string &name, uint16_t id, const std::string &ipaddr)
 
bool cuttlefish::DestroyMobileIface (const std::string &name, uint16_t id, const std::string &ipaddr)
 
bool cuttlefish::AddGateway (const std::string &name, const std::string &gateway, const std::string &netmask)
 
bool cuttlefish::DestroyGateway (const std::string &name, const std::string &gateway, const std::string &netmask)
 
bool cuttlefish::DestroyEthernetIface (const std::string &name, bool has_ipv4_bridge, bool has_ipv6_bridge, bool use_ebtables_legacy)
 
void cuttlefish::CleanupEthernetIface (const std::string &name, const EthernetNetworkConfig &config)
 
bool cuttlefish::CreateEbtables (const std::string &name, bool use_ipv4, bool use_ebtables_legacy)
 
bool cuttlefish::DestroyEbtables (const std::string &name, bool use_ipv4, bool use_ebtables_legacy)
 
bool cuttlefish::EbtablesBroute (const std::string &name, bool use_ipv4, bool add, bool use_ebtables_legacy)
 
bool cuttlefish::EbtablesFilter (const std::string &name, bool use_ipv4, bool add, bool use_ebtables_legacy)
 
bool cuttlefish::LinkTapToBridge (const std::string &tap_name, const std::string &bridge_name)
 
bool cuttlefish::CreateTap (const std::string &name)
 
bool cuttlefish::DeleteIface (const std::string &name)
 
bool cuttlefish::DestroyIface (const std::string &name)
 
std::optional< std::string > cuttlefish::GetUserName (uid_t uid)
 
bool cuttlefish::CreateBridge (const std::string &name)
 
bool cuttlefish::DestroyBridge (const std::string &name)
 
bool cuttlefish::SetupBridgeGateway (const std::string &bridge_name, const std::string &ipaddr)
 
void cuttlefish::CleanupBridgeGateway (const std::string &name, const std::string &ipaddr, const GatewayConfig &config)
 
bool cuttlefish::StartDnsmasq (const std::string &bridge_name, const std::string &gateway, const std::string &dhcp_range)
 
bool cuttlefish::StopDnsmasq (const std::string &name)
 
bool cuttlefish::IptableConfig (const std::string &network, bool add)
 
bool cuttlefish::CreateEthernetBridgeIface (const std::string &name, const std::string &ipaddr)
 
bool cuttlefish::DestroyEthernetBridgeIface (const std::string &name, const std::string &ipaddr)