summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0788ea0)
raw | patch | inline | side by side (parent: 0788ea0)
author | Florian Forster <octo@verplant.org> | |
Wed, 15 Jul 2009 09:33:33 +0000 (11:33 +0200) | ||
committer | Florian Forster <octo@verplant.org> | |
Wed, 15 Jul 2009 09:33:33 +0000 (11:33 +0200) |
src/liboping.c | patch | blob | history |
diff --git a/src/liboping.c b/src/liboping.c
index 88244bb7b66faed42967dfed725aea15c96e11b3..51071ada56a603164ca4a3a0e002cc6b79a4554a 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
setsockopt (ph->fd, IPPROTO_IP, IP_RECVTTL,
&opt, sizeof (opt));
}
+#if defined(IPPROTO_IPV6) && defined(IPV6_RECVHOPLIMIT)
else if (ph->addrfamily == AF_INET6)
{
int opt = 1;
setsockopt (ph->fd, IPPROTO_IPV6, IPV6_RECVHOPLIMIT,
&opt, sizeof (opt));
}
+#endif
break;
}