treewide: Ignore non-ethernet devices
These are not regular ethernet devices that use INET protocols. We can
ignore them as they just produce journal spam otherwise.
Tested: Verified that our MCTP interfaces are no longer reported as
objects and that our NCSI and ETH interfaces are still added.
Change-Id: Idd5723e443b358fe76f039bcc4ce70390824094d
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/rtnetlink.cpp b/src/rtnetlink.cpp
index fd68671..1c80c1d 100644
--- a/src/rtnetlink.cpp
+++ b/src/rtnetlink.cpp
@@ -55,8 +55,9 @@
{
const auto& ifinfo = netlink::extractRtData<ifinfomsg>(msg);
InterfaceInfo ret;
- ret.flags = ifinfo.ifi_flags;
+ ret.type = ifinfo.ifi_type;
ret.idx = ifinfo.ifi_index;
+ ret.flags = ifinfo.ifi_flags;
while (!msg.empty())
{
auto [hdr, data] = netlink::extractRtAttr(msg);