ValentinBELYN / icmplib

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

ping and ICMPReply does not contain ttl information for IPv4 #2

Closed leo-liu closed 4 years ago

leo-liu commented 4 years ago

I notice that both high level ping/multiping and low level ICMPReply do not contain ttl information, which is useful.

And I think it is easy to retrive the ttl in ICMPv4Socket

ValentinBELYN commented 4 years ago

You are right. This is a useful information. Besides, I have already noticed and implemented it, but the code is not yet committed. I work in parallel on other projects, which leaves me less time at the moment. I hope to commit this week.

ValentinBELYN commented 4 years ago

icmplib was designed to offer features based on the ICMPv4 and ICMPv6 protocols. If I add a functionality on ICMPv4, I have to do the same with ICMPv6 to stay consistent and not create asymmetry. Unfortunately, I have no way of accessing the IPv6 header to retrieve the information you want.

I keep the idea in mind but for the moment I close this issue. Thanks for contributing.