0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

NetBSD compile fix.

This commit is contained in:
Ondrej Zajicek 2011-09-04 10:39:10 +02:00
parent 51947659ab
commit cb2b586f00

View File

@ -241,6 +241,8 @@ sk_set_md5_auth_int(sock *s, sockaddr *sa, char *passwd)
#ifndef IPV6 #ifndef IPV6
#ifdef IP_MINTTL
static int static int
sk_set_min_ttl4(sock *s, int ttl) sk_set_min_ttl4(sock *s, int ttl)
{ {
@ -257,7 +259,18 @@ sk_set_min_ttl4(sock *s, int ttl)
return 0; 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 static int
sk_set_min_ttl6(sock *s, int ttl) sk_set_min_ttl6(sock *s, int ttl)