ethernet_interface: Ignore deprecated addresses

These type of addresses are present only for compatability with existing
connections and are not used for new ones. We do not want to list these
addresses as they are not directly configured by phosphor-networkd
anyway.

Change-Id: I6b81cf8b03369e263e542db19cdbe636c9baf970
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/ethernet_interface.cpp b/src/ethernet_interface.cpp
index a1d9b83..7f4f930 100644
--- a/src/ethernet_interface.cpp
+++ b/src/ethernet_interface.cpp
@@ -199,6 +199,10 @@
     auto currentAddrs = getCurrentAddresses(filter);
     for (const auto& addr : currentAddrs)
     {
+        if (addr.flags & IFA_F_DEPRECATED)
+        {
+            continue;
+        }
         auto address = toString(addr.address);
         IP::Protocol addressType = getProtocol(addr.address);
         IP::AddressOrigin origin = IP::AddressOrigin::Static;