From bd12a1736b7e1d23431268b4489bea9475df1122 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Tue, 18 May 2021 12:38:24 -0700 Subject: [PATCH] Fix MAC address getter convenience function in C API --- src/Controls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controls.cpp b/src/Controls.cpp index bea618d..97a237c 100644 --- a/src/Controls.cpp +++ b/src/Controls.cpp @@ -453,7 +453,7 @@ ZTS_API int ZTCALL zts_net_get_mac_str(uint64_t net_id, char* dst, unsigned int dst, ZTS_MAC_ADDRSTRLEN, "%x:%x:%x:%x:%x:%x", - (mac >> 48) & 0xFF, + (mac >> 40) & 0xFF, (mac >> 32) & 0xFF, (mac >> 24) & 0xFF, (mac >> 16) & 0xFF,