TeddyGuo / tping

A hping3-like tool but support IPv6
MIT License
4 stars 2 forks source link

Use ICMPv6EchoRequest() instead of ICMPv6() #7

Closed davehouser1 closed 1 month ago

davehouser1 commented 2 months ago

Not sure which version of Scapy this is running but scapy==2.4.3 I had to use ICMPv6EchoRequest() instead of ICMPv6(). This error happens if ICMPv6() is used:

Traceback (most recent call last):
  File "./tping.py", line 153, in <module>
    tping.run()
  File "./tping.py", line 120, in run
    l4_pkt = l3_pkt/ICMPv6()
NameError: name 'ICMPv6' is not defined
TeddyGuo commented 1 month ago

I have fixed the issue.

Thank you for the advice.