Home
last modified time | relevance | path

Searched refs:mac_address (Results 1 – 6 of 6) sorted by relevance

/device/google/cuttlefish/common/libs/utils/
Dnetwork.h36 std::uint8_t mac_address[6]; member
48 bool ReleaseDhcp4(SharedFD tap, const std::uint8_t mac_address[6],
Dnetwork.cpp179 if (!ParseMacAddress(line_elements[1], &lease.mac_address[0])) { in ParseDnsmasqLeases()
199 out << (int) lease.mac_address[i] << ":"; in operator <<()
201 out << (int) lease.mac_address[5] << "\", ip_address = \"" << std::dec; in operator <<()
261 bool ReleaseDhcp4(SharedFD tap, const std::uint8_t mac_address[6], in ReleaseDhcp4()
268 memcpy(frame.eth.ether_shost, mac_address, 6); in ReleaseDhcp4()
296 memcpy(frame.dhcp.client_harware_address, mac_address, 6); in ReleaseDhcp4()
/device/google/cuttlefish/host/libs/config/
Dcuttlefish_config_instance.cpp338 const std::array<unsigned char, 6>& mac_address) { in set_wifi_mac_address() argument
340 for (const auto& num : mac_address) { in set_wifi_mac_address()
347 std::array<unsigned char, 6> mac_address{0, 0, 0, 0, 0, 0}; in wifi_mac_address() local
354 mac_address[i] = mac_address_obj[i].asInt(); in wifi_mac_address()
356 return mac_address; in wifi_mac_address()
/device/google/cuttlefish/host/commands/assemble_cvd/
Dflags.cc559 std::array<unsigned char, 6> mac_address; in InitializeCuttlefishConfiguration() local
560 mac_address[0] = 1 << 6; // locally administered in InitializeCuttlefishConfiguration()
563 mac_address[i] = i; in InitializeCuttlefishConfiguration()
565 mac_address[5] = num; in InitializeCuttlefishConfiguration()
566 instance.set_wifi_mac_address(mac_address); in InitializeCuttlefishConfiguration()
/device/google/cuttlefish/guest/commands/setup_wifi/
Dmain.cpp35 DEFINE_string(mac_address, "", "mac address to use for wlan0");
/device/google/cuttlefish/host/libs/vm_manager/
Dcrosvm_manager.cpp68 if (!cuttlefish::ReleaseDhcp4(tap_fd, lease.mac_address, lease.ip_address, dhcp_server_ip)) { in ReleaseDhcpLeases()