fixed getNextTTL() function; still errors with some icmp responses