Avoid copying of object

Change-Id: I1e89863344bf6d93b98793c085ea6755f046749f
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/ethernet_interface.cpp b/ethernet_interface.cpp
index 3070670..14ccc6c 100644
--- a/ethernet_interface.cpp
+++ b/ethernet_interface.cpp
@@ -57,7 +57,7 @@
     IP::Protocol addressType = IP::Protocol::IPv4;
     IP::AddressOrigin origin = IP::AddressOrigin::Static;
     route::Table routingTable;
-    for (auto addr : addrs)
+    for (auto& addr : addrs)
     {
         if (addr.addrType == AF_INET6)
         {