summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b04227)
raw | patch | inline | side by side (parent: 8b04227)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 15 Mar 2009 10:24:20 +0000 (11:24 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 15 Mar 2009 10:24:20 +0000 (11:24 +0100) |
src/liboping.c | patch | blob | history |
diff --git a/src/liboping.c b/src/liboping.c
index 0f4c595f7c267ae26273faf0033ce6360bcc192e..65b2ef529dd81cff07b7948f2d8f47eeb76e76c1 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
if (ph->addrfamily == AF_INET)
{
- ret = setsockopt (ph->fd, IPPROTO_IP, IP_TTL, &ttl, sizeof (ttl));
+ dprintf ("Setting TTLv4 to %i\n", ttl);
+ ret = setsockopt (ph->fd, IPPROTO_IP, IP_TTL,
+ &ttl, sizeof (ttl));
}
else if (ph->addrfamily == AF_INET6)
{
- ret = setsockopt (ph->fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &ttl, sizeof (ttl));
+ dprintf ("Setting TTLv6 to %i\n", ttl);
+ ret = setsockopt (ph->fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS,
+ &ttl, sizeof (ttl));
}
return (ret);