ValentinBELYN / icmplib

Easily forge ICMP packets and make your own ping and traceroute.
GNU Lesser General Public License v3.0
266 stars 46 forks source link

Add reply payload retrieval and checking #73

Closed YurBoiRene closed 9 months ago

YurBoiRene commented 9 months ago

A part of the ping command is that it sends a fixed payload and then will report an error if the returned data is different than the data sent.

I noticed in icmplib you can send an arbitrary payload after the ICMP header but there is no support for reading the returned payload or checking if it is the same.

I would propose adding payload property to the ICMPReply class as well as possibly a "valid packets" property in the Host class to report the number of packets that sent valid/invalid data back.

If you're interested in having this as a feature, I would be happy to implement and make a pull request.

ValentinBELYN commented 9 months ago

Hi @YurBoiRene,

Thanks for the suggestion. However, this is not planned at the moment.