Skip to content

How do I regenerate the seq number to replay captured traffic? #99

Description

I'm using Microsoft Windows 10, and I would like to capture some specific tcp packets and replay the captured traffic. But I failed to compile tcpreplay on my pc because of this issue. Also tried ubuntu with wsl 2, but failed to excute tcpreplay because of this issue

Now I found cap and it works perfectly on capturing traffic, But when I tried use c.send to replay captured tcp traffic, it results to tcp spurious retransmission in wireshark and seems not sent by the client or received by the server.

After searching on the Internet, it seems that I should change the original seq/ack number so that I can replay the captured tcp traffic, but how do i generate the seq/ack number, does cap support to replay captured traffic?

Any help would be grateful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions