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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content