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/test/test_netlink.cpp b/test/test_netlink.cpp
index 4514fa4..f256c3a 100644
--- a/test/test_netlink.cpp
+++ b/test/test_netlink.cpp
@@ -299,8 +299,10 @@
system::mock_clear();
for (unsigned i = 0; i < ifs; ++i)
{
- system::mock_addIF(InterfaceInfo{
- .idx = i + 1u, .flags = 0, .name = fmt::format("eth{}", i)});
+ system::mock_addIF(InterfaceInfo{.type = 1u,
+ .idx = i + 1u,
+ .flags = 0,
+ .name = fmt::format("eth{}", i)});
}
size_t cbCalls = 0;