diff options
author | paul <paul> | 2004-07-23 17:17:45 +0200 |
---|---|---|
committer | paul <paul> | 2004-07-23 17:17:45 +0200 |
commit | 79dc373a5ba4540e093711671eb87b1125f51bcd (patch) | |
tree | bd98f33e79e464f9fa381286a49ac2c7aaedba8c /ospf6d/ospf6_network.c | |
parent | 2004-07-23 Paul Jakma <paul@dishone.st> (diff) | |
download | frr-79dc373a5ba4540e093711671eb87b1125f51bcd.tar.xz frr-79dc373a5ba4540e093711671eb87b1125f51bcd.zip |
2004-07-23 Paul Jakma <paul@dishone.st>
* ospf6_main.c: Delete LOG_PERROR, not portable.
* ospf6_network.c: (ospf6_set_pktinfo) use setsockopt_ipv6_pktinfo
Diffstat (limited to 'ospf6d/ospf6_network.c')
-rw-r--r-- | ospf6d/ospf6_network.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ospf6d/ospf6_network.c b/ospf6d/ospf6_network.c index b4f37f6a9..d5bfdd508 100644 --- a/ospf6d/ospf6_network.c +++ b/ospf6d/ospf6_network.c @@ -59,16 +59,7 @@ ospf6_reset_mcastloop () void ospf6_set_pktinfo () { - u_int on = 1; -#ifdef IPV6_RECVPKTINFO /*2292bis-01*/ - if (setsockopt (ospf6_sock, IPPROTO_IPV6, IPV6_RECVPKTINFO, - &on, sizeof (u_int)) < 0) - zlog_warn ("Network: set IPV6_RECVPKTINFO failed: %s", strerror (errno)); -#else /*RFC2292*/ - if (setsockopt (ospf6_sock, IPPROTO_IPV6, IPV6_PKTINFO, - &on, sizeof (u_int)) < 0) - zlog_warn ("Network: set IPV6_PKTINFO failed: %s", strerror (errno)); -#endif + setsockopt_ipv6_pktinfo (ospf6_sock, 1); } void |