types: Migrate to stdplus EtherAddr
Change-Id: I1ec2cd0b57a9f02fe96bbe9a068d1a437805b43a
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/rtnetlink.cpp b/src/rtnetlink.cpp
index 1c80c1d..4308d23 100644
--- a/src/rtnetlink.cpp
+++ b/src/rtnetlink.cpp
@@ -67,9 +67,10 @@
ret.name.emplace(data.begin(), data.end() - 1);
break;
case IFLA_ADDRESS:
- if (data.size() == sizeof(ether_addr))
+ if (data.size() == sizeof(stdplus::EtherAddr))
{
- ret.mac.emplace(stdplus::raw::copyFrom<ether_addr>(data));
+ ret.mac.emplace(
+ stdplus::raw::copyFrom<stdplus::EtherAddr>(data));
}
break;
case IFLA_MTU:
@@ -171,7 +172,7 @@
auto [hdr, data] = netlink::extractRtAttr(msg);
if (hdr.rta_type == NDA_LLADDR)
{
- ret.mac = stdplus::raw::copyFrom<ether_addr>(data);
+ ret.mac = stdplus::raw::copyFrom<stdplus::EtherAddr>(data);
}
else if (hdr.rta_type == NDA_DST)
{