serenity icon indicating copy to clipboard operation
serenity copied to clipboard

Ping: Add TTL config option and value to output

Open Optimoos opened this issue 1 year ago • 1 comments

This change adds the TTL value of the inbound packet to the output of the userland ping program, bringing it more in line with other common ping utilities. It also adds the (optional) -t option to configure the TTL of the outgoing packet if desired.

Optimoos avatar Jun 20 '23 23:06 Optimoos

As an aside, this took me way longer to sort out that it should have because QEMU's "SLIRP" networking was creating havoc with the TTL values, at least for me under Windows. Changing to a tap interface resolved this, and I don't have a Linux machine handy at the moment to see if the issue is repeated there.

Optimoos avatar Jun 20 '23 23:06 Optimoos

Thanks for the feedback Jelle, I've made some adjustments.

Optimoos avatar Jun 21 '23 13:06 Optimoos