summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a8bd724)
raw | patch | inline | side by side (parent: a8bd724)
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 83ca9c242c072cb61622ede4c0058d51c9036f69..76a7d53456c1fd31be8fef44b87695e6f74bfb70 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
{
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;