smoltcp use larger tx/rx buf size (#1085)

* smoltcp use larger tx/rx buf size
* fix direct conn check
This commit is contained in:
Sijie.Sun
2025-07-06 10:53:01 +08:00
committed by GitHub
parent f85b031402
commit 3c65594030
4 changed files with 22 additions and 3 deletions

View File

@@ -54,12 +54,17 @@ pub struct NetConfig {
}
impl NetConfig {
pub fn new(interface_config: Config, ip_addr: IpCidr, gateway: Vec<IpAddress>) -> Self {
pub fn new(
interface_config: Config,
ip_addr: IpCidr,
gateway: Vec<IpAddress>,
buffer_size: Option<BufferSize>,
) -> Self {
Self {
interface_config,
ip_addr,
gateway,
buffer_size: Default::default(),
buffer_size: buffer_size.unwrap_or_default(),
}
}
}