summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-08-26 00:47:56 +0100
committerChris Hall <chris.hall@highwayman.com>2011-08-26 00:47:56 +0100
commit13bfe5f64f471e9e7976bbf4a9b940e0ed78f754 (patch)
treea6fd18306778f0f432d92f1c5b4d395dd4ce60e0
parentcec1fae79110dffa900c0c5f38c3d3b48f5b0db6 (diff)
downloadquagga-13bfe5f64f471e9e7976bbf4a9b940e0ed78f754.tar.bz2
quagga-13bfe5f64f471e9e7976bbf4a9b940e0ed78f754.tar.xz
Fix compilation of sockopt.c when no IP_MINTTL or IPV6_MINHOPCOUNT.
-rw-r--r--lib/sockopt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sockopt.c b/lib/sockopt.c
index 083cafc2..5aed83bc 100644
--- a/lib/sockopt.c
+++ b/lib/sockopt.c
@@ -266,10 +266,11 @@ setsockopt_minttl (int sock_fd, int ttl)
{
#ifdef IP_MINTTL
have_ip_minttl = true,
+ ip_minttl = IP_MINTTL
#else
have_ip_minttl = false,
+ ip_minttl = 0
#endif
- ip_minttl = IP_MINTTL + 0
} ;
#ifdef HAVE_IPV6
@@ -286,10 +287,11 @@ setsockopt_minttl (int sock_fd, int ttl)
{
# ifdef IPV6_MINHOPCOUNT
have_ipv6_minhopcount = true,
+ ipv6_minhopcount = IPV6_MINHOPCOUNT
# else
have_ipv6_minhopcount = false,
+ ipv6_minhopcount = IPV6_MINHOPCOUNT
# endif
- ipv6_minhopcount = IPV6_MINHOPCOUNT + 0
} ;
#endif /* HAVE_IPV6 */