Are there any socket options similar to "IP_RECVTTL" or an alternate way to retrieve TTL values from received tcp packets in RHEL?

Solution Verified - Updated -

Issue

  • For datagram sockets (UDP) you have these socket options IP_RECVTTL and IP_TTL which helps reading the TTL values of incoming and outgoing packets.
  • Is there any similar options available for TCP sockets as well?
  • Why sockets options likeIP_RECVTTL fails to retrieve TTL values from incoming socket?
  • Are there any ways to detect tethering from incoming TCP packet using TTL ?

Environment

  • Red Hat Enterprise Linux .
  • tcp socket options.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.