scapy icon indicating copy to clipboard operation
scapy copied to clipboard

Unable to get a response after sending a packet

Open MrGlebw opened this issue 1 year ago • 1 comments

Brief description

pkt = IP(dst=dest_addr, ttl=hop) / ICMP() reply = sr1(pkt, verbose=0, timeout=timeout)

Reply is None. Everything worked fine in the previous version

Scapy version

2.5.0

Python version

3.12

Operating system

Ubuntu 22.04

Additional environment information

No response

How to reproduce

from scapy.layers.inet import IP, ICMP from scapy.sendrecv import sr1 current_ip = "172.20.0.1" to_ip = "8.8.8.8" packet = IP(src=current_ip, dst=to_ip) / ICMP() reply = sr1(packet, timeout=1, verbose=False)

if name == "main": print(reply)

Actual result

Output is: None

Expected result

Packet

Related resources

No response

MrGlebw avatar Sep 03 '24 10:09 MrGlebw

Hi, Thanks for the report. Could you however retry using the latest dev version ? (from github) Thanks

gpotter2 avatar Sep 03 '24 23:09 gpotter2

Closing for inactivity.

gpotter2 avatar Oct 20 '24 23:10 gpotter2