Skip to content

Does smoltcp support manual TCP sequence number control? #1100

@shamil-qwerty

Description

@shamil-qwerty

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions