Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TTL in linux

Status
Not open for further replies.

iggystar

IS-IT--Management
Jul 12, 2001
126
US
Anybody know how I can check and change the TTL for IP packets on a Red hat linux box with a vanilla off the shelf installation?

Thanks.
 
At least after V1.1.59 (and most probably before) Linux uses "safe" values of 64 for both TCP and UDP default TTLs. As these values are "hardcoded", occasional modifications have to be done deep in the source - change the parameter sk->ip_ttl in file net/inet/af_inet.c to whatever you think is appropriate for you. Some pointers to find the position where sk->ip_ttl is set:
Linux V1.12.11: net/inet/af_inet.c line 695
Linux V1.3.45: net/inet/af_inet.c line 678
Linux V2.2.x: net/ipv4/ipconfig.c line 516
netconfig2.3 is a tool available from: ftp://cs.ucsd.edu/pub/csl/Netconfig/netconfig2.3.tar.gz
but use it on ur own risk.
Hope it helps
Kapil
Technical Director
Infovalley Interwebspiders Pvt. Ltd.
Microsoft Certified System Engineer
visit
If u find the information provided here useful to u then let me know by clicking on the link below s-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top