From c2ef543ba1cc60c2064d73b80f84a5ca2c5c9ac9 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Thu, 5 Nov 2009 06:08:04 +0000 Subject: [PATCH] IP_TTL is an IP socket option, not a TTL value. Use IPDEFTTL instead. --- lib/libstand/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libstand/udp.c b/lib/libstand/udp.c index a95cedebdf58..194f564531a8 100644 --- a/lib/libstand/udp.c +++ b/lib/libstand/udp.c @@ -90,7 +90,7 @@ sendudp(d, pkt, len) ip->ip_hl = sizeof(*ip) >> 2; /* half-char */ ip->ip_len = htons(len); ip->ip_p = IPPROTO_UDP; /* char */ - ip->ip_ttl = IP_TTL; /* char */ + ip->ip_ttl = IPDEFTTL; /* char */ ip->ip_src = d->myip; ip->ip_dst = d->destip; ip->ip_sum = in_cksum(ip, sizeof(*ip)); /* short, but special */