mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-13 14:18:48 -04:00
sock is potentially unused in use_min_mtu
This commit is contained in:
parent
a0f8a69a2e
commit
3f2f6ca891
2 changed files with 6 additions and 1 deletions
|
|
@ -2227,6 +2227,9 @@ clear_bsdcompat(void) {
|
|||
|
||||
static void
|
||||
use_min_mtu(isc__socket_t *sock) {
|
||||
#if !defined(IPV6_USE_MIN_MTU) && !defined(IPV6_MTU)
|
||||
UNUSED(sock);
|
||||
#endif
|
||||
#ifdef IPV6_USE_MIN_MTU
|
||||
/* use minimum MTU */
|
||||
if (sock->pf == AF_INET6) {
|
||||
|
|
|
|||
|
|
@ -1427,7 +1427,7 @@ startio_send(isc_socket_t *sock, isc_socketevent_t *dev, int *nbytes,
|
|||
}
|
||||
|
||||
static void
|
||||
use_min_mtu(isc__socket_t *sock) {
|
||||
use_min_mtu(isc_socket_t *sock) {
|
||||
#ifdef IPV6_USE_MIN_MTU
|
||||
/* use minimum MTU */
|
||||
if (sock->pf == AF_INET6) {
|
||||
|
|
@ -1435,6 +1435,8 @@ use_min_mtu(isc__socket_t *sock) {
|
|||
(void)setsockopt(sock->fd, IPPROTO_IPV6, IPV6_USE_MIN_MTU,
|
||||
(void *)&on, sizeof(on));
|
||||
}
|
||||
#else
|
||||
UNUSED(sock);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue