This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
[Problem while setting TTL using setsockopt()]
- From: nitin padalia <padalia dot nitin at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Sat, 5 Jan 2013 12:10:41 +0530
- Subject: [Problem while setting TTL using setsockopt()]
Hi,
While setting TTL value in UDP socket using setsockopt(), I am seeing
different behavior in glibc-2.5-34 and glibc-2.12-1.47.el6 on Linux
in 2.5 if I set the SOL_IP, IP_TTL value to 0 it sets TTL to 64
however in 2.12-1.47 it sets it to 0. Just to confirm is it the
correct behavior? Did some code changes done between these two release
for the same change in behavior.
Thanks! a lot in advance.
Best Regards,
Nitin Padalia