mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 10:53:25 +00:00
Set the TX buffer length of UDP sockets correctly
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
b7a3f1a540
commit
fa584bd8f5
@ -47,7 +47,7 @@ impl AnyUnboundSocket {
|
|||||||
);
|
);
|
||||||
let tx_buffer = smoltcp::socket::udp::PacketBuffer::new(
|
let tx_buffer = smoltcp::socket::udp::PacketBuffer::new(
|
||||||
vec![metadata; UDP_METADATA_LEN],
|
vec![metadata; UDP_METADATA_LEN],
|
||||||
vec![0u8; UDP_RECEIVE_PAYLOAD_LEN],
|
vec![0u8; UDP_SEND_PAYLOAD_LEN],
|
||||||
);
|
);
|
||||||
RawUdpSocket::new(rx_buffer, tx_buffer)
|
RawUdpSocket::new(rx_buffer, tx_buffer)
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user