diff options
| author | 2019-12-18 20:33:49 +0000 | |
|---|---|---|
| committer | 2019-12-18 20:33:49 +0000 | |
| commit | 387b21f42725d44610fc9f5a97846065a6e3d872 (patch) | |
| tree | fd3fa7989552fc57b4a6279a78a343f70d7db645 /usr.sbin/bind/lib/isc/unix/socket.c | |
| parent | remove HTMLPAGES components, not used (diff) | |
| download | wireguard-openbsd-387b21f42725d44610fc9f5a97846065a6e3d872.tar.xz wireguard-openbsd-387b21f42725d44610fc9f5a97846065a6e3d872.zip | |
unifdef _AIX
Diffstat (limited to 'usr.sbin/bind/lib/isc/unix/socket.c')
| -rw-r--r-- | usr.sbin/bind/lib/isc/unix/socket.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/usr.sbin/bind/lib/isc/unix/socket.c b/usr.sbin/bind/lib/isc/unix/socket.c index 4b5b6c96e56..6e672d82dd1 100644 --- a/usr.sbin/bind/lib/isc/unix/socket.c +++ b/usr.sbin/bind/lib/isc/unix/socket.c @@ -866,39 +866,6 @@ socket_log(isc__socket_t *sock, isc_sockaddr_t *address, } } -#if defined(_AIX) && defined(ISC_NET_BSD44MSGHDR) && \ - defined(USE_CMSG) && defined(IPV6_RECVPKTINFO) -/* - * AIX has a kernel bug where IPV6_RECVPKTINFO gets cleared by - * setting IPV6_V6ONLY. - */ -static void -FIX_IPV6_RECVPKTINFO(isc__socket_t *sock) -{ - char strbuf[ISC_STRERRORSIZE]; - int on = 1; - - if (sock->pf != AF_INET6 || sock->type != isc_sockettype_udp) - return; - - if (setsockopt(sock->fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, - (void *)&on, sizeof(on)) < 0) { - - isc__strerror(errno, strbuf, sizeof(strbuf)); - UNEXPECTED_ERROR(__FILE__, __LINE__, - "setsockopt(%d, IPV6_RECVPKTINFO) " - "%s: %s", sock->fd, - isc_msgcat_get(isc_msgcat, - ISC_MSGSET_GENERAL, - ISC_MSG_FAILED, - "failed"), - strbuf); - } -} -#else -#define FIX_IPV6_RECVPKTINFO(sock) (void)0 -#endif - /*% * Increment socket-related statistics counters. */ @@ -6218,7 +6185,6 @@ isc__socket_ipv6only(isc_socket_t *sock0, isc_boolean_t yes) { strbuf); } } - FIX_IPV6_RECVPKTINFO(sock); /* AIX */ #endif } |
