ITADN

Does smoltcp support manual TCP sequence number control?

#1100Openshamil-qwerty 创建于 2025-11-08
S
shamil-qwertycommented
We need to send TCP packets with custom sequence numbers. We're using `TcpRepr` with `device.transmit()` to send raw TCP packets, but we're unsure if this is the correct approach. Questions: 1. Can we manually set `seq_number` in `TcpRepr` and expect it to work correctly? 2. Is there a proper way to send TCP packets with custom sequence numbers through smoltcp? 3. If smoltcp doesn't support this, which Rust crates provide this functionality? P. S. We saw that `socket.local_seq_no` field is private (`Socket` struct) and that's why we're asking
0 条评论