From c7b6a997bea0389e510a2a6e7d255e1434739e61 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 21 Oct 2022 16:54:44 -0700 Subject: [PATCH] docs --- network-hypervisor/src/vl1/path.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network-hypervisor/src/vl1/path.rs b/network-hypervisor/src/vl1/path.rs index 78fdb362a..9fbea20bb 100644 --- a/network-hypervisor/src/vl1/path.rs +++ b/network-hypervisor/src/vl1/path.rs @@ -44,8 +44,8 @@ impl Path { ) -> Self { Self { endpoint, - local_socket: Pocket::new(local_socket), - local_interface: Pocket::new(local_interface), + local_socket: Pocket::new(local_socket), // enlarge Pocket<> if this panics + local_interface: Pocket::new(local_interface), // enlarge Pocket<> if this panics last_send_time_ticks: AtomicI64::new(NEVER_HAPPENED_TICKS), last_receive_time_ticks: AtomicI64::new(NEVER_HAPPENED_TICKS), create_time_ticks: time_ticks, @@ -60,7 +60,7 @@ impl Path { #[inline(always)] pub(crate) fn local_interface(&self) -> &HostSystemImpl::LocalInterface { - self.local_socket.get() + self.local_interface.get() } /// Receive a fragment and return a FragmentedPacket if the entire packet was assembled.