projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0788ea0
)
src/liboping.c: Check if IPPROTO_IPV6 and IPV6_RECVHOPLIMIT are defined.
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
88244bb
..
51071ad
100644
(file)
--- a/
src/liboping.c
+++ b/
src/liboping.c
@@
-1352,6
+1352,7
@@
int ping_host_add (pingobj_t *obj, const char *host)
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;
@@
-1359,6
+1360,7
@@
int ping_host_add (pingobj_t *obj, const char *host)
setsockopt (ph->fd, IPPROTO_IPV6, IPV6_RECVHOPLIMIT,
&opt, sizeof (opt));
}
+#endif
break;
}