projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8bd724
)
guard use of IP_RECVTOS which is unavailable on kfreebsd
author
Barak A. Pearlmutter
<barak+git@cs.nuim.ie>
Thu, 1 Sep 2011 11:48:57 +0000
(12:48 +0100)
committer
Florian Forster
<octo@verplant.org>
Mon, 5 Sep 2011 02:56:32 +0000
(22:56 -0400)
src/liboping.c
patch
|
blob
|
history
diff --git
a/src/liboping.c
b/src/liboping.c
index
83ca9c2
..
76a7d53
100644
(file)
--- a/
src/liboping.c
+++ b/
src/liboping.c
@@
-1540,10
+1540,12
@@
int ping_host_add (pingobj_t *obj, const char *host)
{
int opt;
+#ifdef IP_RECVTOS
/* Enable receiving the TOS field */
opt = 1;
setsockopt (ph->fd, IPPROTO_IP, IP_RECVTOS,
&opt, sizeof (opt));
+#endif /* IP_RECVTOS */
/* Enable receiving the TTL field */
opt = 1;