[Problem while setting TTL using setsockopt()]

nitin padalia padalia.nitin@gmail.com
Sat Jan 5 06:40:00 GMT 2013


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



More information about the Libc-help mailing list