|
Android-cuttlefish cvd tool
|
#include "cuttlefish/common/libs/utils/network.h"#include <arpa/inet.h>#include <ifaddrs.h>#include <netinet/in.h>#include <stdint.h>#include <string.h>#include <sys/socket.h>#include <string>#include <vector>#include "fmt/format.h"#include "fmt/ranges.h"
Namespaces | |
| namespace | cuttlefish |
| namespace | cuttlefish::anonymous_namespace{network.cpp} |
Functions | |
| void | cuttlefish::anonymous_namespace{network.cpp}::GenerateMacForInstance (int index, uint8_t type, uint8_t out[6]) |
| bool | cuttlefish::NetworkInterfaceExists (const std::string &interface_name) |
| std::string | cuttlefish::MacAddressToString (const uint8_t mac[6]) |
| std::string | cuttlefish::Ipv6ToString (const uint8_t ip[16]) |
| void | cuttlefish::GenerateMobileMacForInstance (int index, uint8_t out[6]) |
| void | cuttlefish::GenerateEthMacForInstance (int index, uint8_t out[6]) |
| void | cuttlefish::GenerateWifiMacForInstance (int index, uint8_t out[6]) |
| void | cuttlefish::GenerateCorrespondingIpv6ForMac (const uint8_t mac[6], uint8_t out[16]) |