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:
- Can we manually set
seq_number in TcpRepr and expect it to work correctly?
- Is there a proper way to send TCP packets with custom sequence numbers through smoltcp?
- 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