MCPcopy Create free account
hub / github.com/XorTroll/uLaunch / FormatMacAddress

Function FormatMacAddress

libs/uCommon/source/ul/net/net_Service.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 std::string FormatMacAddress(const WlanMacAddress &addr) {
87 std::stringstream strm;
88 strm << std::hex << std::uppercase;
89 for(u32 i = 0; i < sizeof(WlanMacAddress); i++) {
90 strm << static_cast<u32>(addr.mac[i]);
91 if((i + 1) < sizeof(WlanMacAddress)) {
92 strm << ':';
93 }
94 }
95 return strm.str();
96 }
97
98 std::string GetConsoleIpAddress() {
99 char ip_addr[0x20] = {0};

Callers 1

LoadSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected