summaryrefslogtreecommitdiffstats
path: root/lib/sockopt.c
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-08-26 01:26:21 +0100
committerChris Hall <chris.hall@highwayman.com>2011-08-26 01:26:21 +0100
commit61ce99795c2b0a7c426f02795fd478ca84d7fa0a (patch)
treeb4c5bda4cc6ea55b3fc9c0e137957942f70e7eaa /lib/sockopt.c
parent7bd8653ef788a6395b07583d6766be8950598342 (diff)
downloadquagga-61ce99795c2b0a7c426f02795fd478ca84d7fa0a.tar.bz2
quagga-61ce99795c2b0a7c426f02795fd478ca84d7fa0a.tar.xz
Fix compilation of sockopt.c when no IP_MINTTL or IPV6_MINHOPCOUNT.
Diffstat (limited to 'lib/sockopt.c')
-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 */