From: Yann Dirson Date: Thu, 23 Nov 2023 17:27:41 +0000 (+0100) Subject: pnet: keep a note on InterfaceInfo::name X-Git-Tag: 0.3.0~11^2~6 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0f25f2fe08fcdab4e46d2add7b2088240fc7c6fc;p=xen-guest-agent.git pnet: keep a note on InterfaceInfo::name 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 --- diff --git a/src/collector_net_pnet.rs b/src/collector_net_pnet.rs index ddbe3c1..1ce5c8a 100644 --- a/src/collector_net_pnet.rs +++ b/src/collector_net_pnet.rs @@ -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
, }