Move IpEndpoint to socket/ip/addr.rs

This commit is contained in:
Ruihan Li
2024-07-26 15:43:13 +08:00
committed by Tate, Hongliang Tian
parent b11628b9ce
commit d814603504
16 changed files with 69 additions and 55 deletions

View File

@ -6,8 +6,11 @@ use smoltcp::{
wire::IpCidr,
};
use super::{common::IfaceCommon, internal::IfaceInternal, Iface, IpAddress, Ipv4Address};
use crate::prelude::*;
use super::{common::IfaceCommon, internal::IfaceInternal, Iface};
use crate::{
net::socket::ip::{IpAddress, Ipv4Address},
prelude::*,
};
pub const LOOPBACK_ADDRESS: IpAddress = {
let ipv4_addr = Ipv4Address::new(127, 0, 0, 1);