mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 01:13:23 +00:00
Move smoltcp-related code to bigtcp
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
9fba9445bd
commit
67d3682116
18
kernel/libs/aster-bigtcp/src/errors.rs
Normal file
18
kernel/libs/aster-bigtcp/src/errors.rs
Normal file
@ -0,0 +1,18 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
/// An error describing the reason why `bind` failed.
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||
pub enum BindError {
|
||||
/// All ephemeral ports is exhausted.
|
||||
Exhausted,
|
||||
/// The specified address is in use.
|
||||
InUse,
|
||||
}
|
||||
|
||||
pub mod tcp {
|
||||
pub use smoltcp::socket::tcp::{ConnectError, ListenError, RecvError, SendError};
|
||||
}
|
||||
|
||||
pub mod udp {
|
||||
pub use smoltcp::socket::udp::{RecvError, SendError};
|
||||
}
|
Reference in New Issue
Block a user