Skip to content

TCP out of order segments ack not received in srp1 #4696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
imvtsl opened this issue Mar 17, 2025 · 0 comments
Open

TCP out of order segments ack not received in srp1 #4696

imvtsl opened this issue Mar 17, 2025 · 0 comments

Comments

@imvtsl
Copy link

imvtsl commented Mar 17, 2025

Brief description

When TCP segments are sent out of order, scapy's srp1() returns None for the last segment sent.

Expected behaviour: scapy's srp1() should return the ACK packet for the last segment sent as shown in packet capture.

The tcp client code, packet capture file and screenshots are in this repo for reproduction.

Scapy version

2.6.1

Python version

3.12.3

Operating system

Linux 6.8.0-54-generic

Additional environment information

No response

How to reproduce

  • Set up your own TCP server.
  • Replace dst_port, dst_ip, src_ip, src_mac, dst_mac, iface in issue.py
  • Capture on the interface using wireshark/tcpdump or any other tools of your choice.
  • run issue.py

Actual result

order_1_ack is None

Expected result

order_1_ack should not be None. It should have same contents as in the captured pcap.

Related resources

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant