#include <pwd.h>
#include <stdint.h>
#include <sys/wait.h>
#include <unistd.h>
#include <optional>
#include <string>
#include <string_view>
#include "cuttlefish/result/result.h"
Go to the source code of this file.
|
| int | cuttlefish::RunExternalCommand (const std::string &command) |
| |
| Result< std::string > | cuttlefish::IptablesPath () |
| |
| Result< std::string > | cuttlefish::DnsmasqPath () |
| |
| std::optional< std::string > | cuttlefish::GetUserName (uid_t uid) |
| |
| bool | cuttlefish::CreateTap (std::string_view name) |
| |
| bool | cuttlefish::DestroyIface (std::string_view name) |
| |
| bool | cuttlefish::DestroyBridge (std::string_view name) |
| |
| bool | cuttlefish::CreateMobileIface (std::string_view name, uint16_t id, std::string_view ipaddr) |
| |
| bool | cuttlefish::DestroyMobileIface (std::string_view name, uint16_t id, std::string_view ipaddr) |
| |
| bool | cuttlefish::CreateEthernetIface (std::string_view name, std::string_view bridge_name) |
| |
| bool | cuttlefish::DestroyEthernetIface (std::string_view name) |
| |
| void | cuttlefish::CleanupEthernetIface (std::string_view name) |
| |
| bool | cuttlefish::SetupBridgeGateway (std::string_view bridge_name, std::string_view ipaddr) |
| |
| void | cuttlefish::CleanupBridgeGateway (std::string_view name, std::string_view ipaddr, const GatewayConfig &config) |
| |
| bool | cuttlefish::CreateEthernetBridgeIface (std::string_view name, std::string_view ipaddr) |
| |
| bool | cuttlefish::DestroyEthernetBridgeIface (std::string_view name, std::string_view ipaddr) |
| |
| bool | cuttlefish::StartDnsmasq (std::string_view bridge_name, std::string_view gateway, std::string_view dhcp_range) |
| |
| bool | cuttlefish::StopDnsmasq (std::string_view name) |
| |