]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
NetBSD compile fix.
authorOndrej Zajicek <santiago@crfreenet.org>
Sun, 4 Sep 2011 08:39:10 +0000 (10:39 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Sun, 4 Sep 2011 08:39:10 +0000 (10:39 +0200)
sysdep/bsd/sysio.h

index 95f7dcf467ada1b88021b774007e91244622270c..f0b5f40143d977af26c937d8df9ff7f79003dac4 100644 (file)
@@ -241,6 +241,8 @@ sk_set_md5_auth_int(sock *s, sockaddr *sa, char *passwd)
 
 #ifndef IPV6
 
+#ifdef IP_MINTTL
+
 static int
 sk_set_min_ttl4(sock *s, int ttl)
 {
@@ -257,7 +259,18 @@ sk_set_min_ttl4(sock *s, int ttl)
   return 0;
 }
 
-#else
+#else /* no IP_MINTTL */
+
+static int
+sk_set_min_ttl4(sock *s, int ttl)
+{
+  log(L_ERR "IPv4 TTL security not supported");
+  return -1;
+}
+
+#endif
+
+#else /* IPv6 */
 
 static int
 sk_set_min_ttl6(sock *s, int ttl)