]> xenbits.xensource.com Git - xen-guest-agent.git/commitdiff
pnet: keep a note on InterfaceInfo::name
authorYann Dirson <yann.dirson@vates.fr>
Thu, 23 Nov 2023 17:27:41 +0000 (18:27 +0100)
committerYann Dirson <yann.dirson@vates.fr>
Fri, 8 Dec 2023 09:59:46 +0000 (10:59 +0100)
Storage of interface name in pnet::InterfaceInfo would seem redundant
now, but we still need it stored temporarily, and this still looks
like the best place to do so.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
src/collector_net_pnet.rs

index ddbe3c112f287f77dc99afad7363908b6b105216..1ce5c8a271b012fe27665167d97b3aa84a6404c0 100644 (file)
@@ -16,6 +16,8 @@ enum Address {
     MAC(MacAddr),
 }
 struct InterfaceInfo {
+    // only needed to keep iface name from pnet data until we know we
+    // have a new NetInterface to construct
     name: String,
     addresses: HashSet<Address>,
 }