scapy
scapy copied to clipboard
Unable to get a response after sending a packet
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
Hi, Thanks for the report. Could you however retry using the latest dev version ? (from github) Thanks
Closing for inactivity.