mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 01:13:23 +00:00
Move packet dispatch out of smoltcp
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
f793259512
commit
ee1656ba35
@ -14,5 +14,15 @@ pub mod tcp {
|
||||
}
|
||||
|
||||
pub mod udp {
|
||||
pub use smoltcp::socket::udp::{RecvError, SendError};
|
||||
pub use smoltcp::socket::udp::RecvError;
|
||||
|
||||
/// An error returned by [`BoundTcpSocket::recv`].
|
||||
///
|
||||
/// [`BoundTcpSocket::recv`]: crate::socket::BoundTcpSocket::recv
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||
pub enum SendError {
|
||||
TooLarge,
|
||||
Unaddressable,
|
||||
BufferFull,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user