]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Merge commit '354496ace87341428e6005fbc073fbe57b4e6c0e' into integrated
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 31 Jul 2013 16:33:55 +0000 (18:33 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 31 Jul 2013 16:33:55 +0000 (18:33 +0200)
Conflicts:

sysdep/bsd/sysio.h
sysdep/unix/io.c

1  2 
proto/ospf/iface.c
sysdep/bsd/sysio.h

Simple merge
index e33bc9c66f24332fc06d48cca2470e63965b4199,cf049a0b193fcec7e4bb993c581e503c1645bf75..6de329198f34f6a5626424cad40f9c90c7e0fb1c
@@@ -211,35 -270,35 +223,22 @@@ sk_set_md5_auth_int(sock *s, struct soc
  }
  
  
- #ifdef IP_MINTTL
 -#ifndef IPV6
--
 -static int
 +static inline char *
  sk_set_min_ttl4(sock *s, int ttl)
  {
    if (setsockopt(s->fd, IPPROTO_IP, IP_MINTTL, &ttl, sizeof(ttl)) < 0)
 -  {
 -    if (errno == ENOPROTOOPT)
 -      log(L_ERR "Kernel does not support IPv4 TTL security");
 -    else
 -      log(L_ERR "sk_set_min_ttl4: setsockopt: %m");
 -
 -    return -1;
 -  }
 +    return "IP_MINTTL";
  
 -  return 0;
 +  return NULL;
  }
  
- #else /* no IP_MINTTL */
- static inline char *
- sk_set_min_ttl4(sock *s, int ttl)
- {
-   errno = ENOPROTOOPT;
-   return "IP_MINTTL";
- }
- #endif
 -#else /* IPv6 */
--
 -static int
 +static inline char *
  sk_set_min_ttl6(sock *s, int ttl)
  {
 -  log(L_ERR "IPv6 TTL security not supported");
 -  return -1;
 +  errno = ENOPROTOOPT;
 +  return "IP_MINTTL";
  }
  
 -#endif
 -
  
  int sk_priority_control = -1;