From 74d2f598ff4881486fcd770eb28b7850487bafc6 Mon Sep 17 00:00:00 2001 From: marcel Date: Thu, 5 Nov 2009 06:08:04 +0000 Subject: 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(-) (limited to 'lib/libstand/udp.c') diff --git a/lib/libstand/udp.c b/lib/libstand/udp.c index a95cede..194f564 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 */ -- cgit v1.1