Set the TX buffer length of UDP sockets correctly

This commit is contained in:
Ruihan Li
2024-06-18 16:19:26 +08:00
committed by Tate, Hongliang Tian
parent b7a3f1a540
commit fa584bd8f5

View File

@ -47,7 +47,7 @@ impl AnyUnboundSocket {
);
let tx_buffer = smoltcp::socket::udp::PacketBuffer::new(
vec![metadata; UDP_METADATA_LEN],
vec![0u8; UDP_RECEIVE_PAYLOAD_LEN],
vec![0u8; UDP_SEND_PAYLOAD_LEN],
);
RawUdpSocket::new(rx_buffer, tx_buffer)
};