TTL value is set to zero
I have a weird problem. When I do a ping localhost the TTL value is always set to zero, as a result when I do data transfer my packets are always discarded (TTL=0).
When I try to ping <domain> then TTL values are non-zero.
my ip_default_ttl under /proc/sys/net/ipv4/ is set to 64.
Any ideas on why the TTL value is always zero and how I can fix this problem. Appreciate your help.