How do i retrieve (programmatically) the TTL/hop count value for the received data/packets of a TCP stream on a Linux (or any other posix systems altough linux-only solutions are welcome too) system?
I know that I would then not know the initial TTL but I would still be able to see the changes of that value. I would then know if the route of the tcp-stream would be changed, helping me to explain changes in latency.
I would be using this knowledge in httping: I'm trying to give the user handles to explain what the cause might be of certain latencies.