diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2011-09-04 10:39:10 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2011-09-04 10:39:10 +0200 |
commit | cb2b586f00f5e7ef9a902b028fc5bfe117890457 (patch) | |
tree | 0af9c53df58720f3435b0b079eed8d6eeac870f7 /sysdep/bsd/sysio.h | |
parent | 51947659abbf9af861aa7dec36fd1c845fb617ab (diff) |
NetBSD compile fix.
Diffstat (limited to 'sysdep/bsd/sysio.h')
-rw-r--r-- | sysdep/bsd/sysio.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sysdep/bsd/sysio.h b/sysdep/bsd/sysio.h index 95f7dcf4..f0b5f401 100644 --- a/sysdep/bsd/sysio.h +++ b/sysdep/bsd/sysio.h @@ -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) |