util: Add a MacAddr population function

This one is pretty trivial since there is only one size of mac
address, but we want to be sure we validate the buffer.

Tested:
    Built and runs through unit tests. Works when integrated into
    neighbor parsing code.

Change-Id: Iaf58fc398b51a3bcbbf70968cbe353beeb7b9f54
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/util.hpp b/util.hpp
index a07fa49..9531d4f 100644
--- a/util.hpp
+++ b/util.hpp
@@ -49,6 +49,11 @@
  */
 std::string getfromInventory(sdbusplus::bus::bus& bus);
 
+/* @brief Marshalls the bytes for a mac address into a MacAddr.
+ * @param[in] buf - The network byte order address
+ */
+MacAddr fromBuf(std::string_view buf);
+
 /** @brief Converts the given mac address bytes into a string
  *  @param[in] bytes - The mac address
  *  @returns A valid mac address string