Android-cuttlefish cvd tool
Classes | Namespaces | Functions | Variables
alloc_utils.h File Reference
#include <stdint.h>
#include <string>
#include "absl/strings/string_view.h"
#include "cuttlefish/result/result.h"
Include dependency graph for alloc_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cuttlefish::GatewayConfig
 

Namespaces

namespace  cuttlefish
 

Functions

Result< std::string > cuttlefish::DnsmasqPath ()
 
bool cuttlefish::CreateTap (absl::string_view name)
 
bool cuttlefish::DestroyIface (absl::string_view name)
 
bool cuttlefish::DestroyBridge (absl::string_view name)
 
std::string cuttlefish::MobileNetworkName (absl::string_view ipaddr, absl::string_view netmask, uint16_t id)
 
bool cuttlefish::CreateMobileIface (absl::string_view name, uint16_t id, absl::string_view ipaddr)
 
bool cuttlefish::DestroyMobileIface (absl::string_view name, uint16_t id, absl::string_view ipaddr)
 
bool cuttlefish::CreateEthernetIface (absl::string_view name, absl::string_view bridge_name)
 
bool cuttlefish::DestroyEthernetIface (absl::string_view name)
 
void cuttlefish::CleanupEthernetIface (absl::string_view name)
 
bool cuttlefish::SetupBridgeGateway (absl::string_view bridge_name, absl::string_view ipaddr)
 
void cuttlefish::CleanupBridgeGateway (absl::string_view name, absl::string_view ipaddr, const GatewayConfig &config)
 
bool cuttlefish::CreateEthernetBridgeIface (absl::string_view name, absl::string_view ipaddr)
 
bool cuttlefish::DestroyEthernetBridgeIface (absl::string_view name, absl::string_view ipaddr)
 
bool cuttlefish::StartDnsmasq (absl::string_view bridge_name, absl::string_view gateway, absl::string_view dhcp_range)
 
bool cuttlefish::StopDnsmasq (absl::string_view name)
 

Variables

constexpr uint32_t cuttlefish::kMaxIfaceNameId = 63
 
constexpr char cuttlefish::kMobileNetmask [] = "/30"