This commit is contained in:
Adam Ierymenko 2022-10-21 16:54:44 -07:00
parent ac9bac6efd
commit c7b6a997be
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3

View file

@ -44,8 +44,8 @@ impl Path {
) -> Self { ) -> Self {
Self { Self {
endpoint, endpoint,
local_socket: Pocket::new(local_socket), local_socket: Pocket::new(local_socket), // enlarge Pocket<> if this panics
local_interface: Pocket::new(local_interface), local_interface: Pocket::new(local_interface), // enlarge Pocket<> if this panics
last_send_time_ticks: AtomicI64::new(NEVER_HAPPENED_TICKS), last_send_time_ticks: AtomicI64::new(NEVER_HAPPENED_TICKS),
last_receive_time_ticks: AtomicI64::new(NEVER_HAPPENED_TICKS), last_receive_time_ticks: AtomicI64::new(NEVER_HAPPENED_TICKS),
create_time_ticks: time_ticks, create_time_ticks: time_ticks,
@ -60,7 +60,7 @@ impl Path {
#[inline(always)] #[inline(always)]
pub(crate) fn local_interface<HostSystemImpl: HostSystem + ?Sized>(&self) -> &HostSystemImpl::LocalInterface { pub(crate) fn local_interface<HostSystemImpl: HostSystem + ?Sized>(&self) -> &HostSystemImpl::LocalInterface {
self.local_socket.get() self.local_interface.get()
} }
/// Receive a fragment and return a FragmentedPacket if the entire packet was assembled. /// Receive a fragment and return a FragmentedPacket if the entire packet was assembled.