mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 16:45:24 +00:00
sock is potentially unused in use_min_mtu
This commit is contained in:
@@ -2266,6 +2266,9 @@ clear_bsdcompat(void) {
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
use_min_mtu(isc__socket_t *sock) {
|
use_min_mtu(isc__socket_t *sock) {
|
||||||
|
#if !defined(IPV6_USE_MIN_MTU) && !defined(IPV6_MTU)
|
||||||
|
UNUSED(sock);
|
||||||
|
#endif
|
||||||
#ifdef IPV6_USE_MIN_MTU
|
#ifdef IPV6_USE_MIN_MTU
|
||||||
/* use minimum MTU */
|
/* use minimum MTU */
|
||||||
if (sock->pf == AF_INET6) {
|
if (sock->pf == AF_INET6) {
|
||||||
|
@@ -1432,7 +1432,7 @@ startio_send(isc_socket_t *sock, isc_socketevent_t *dev, int *nbytes,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
use_min_mtu(isc__socket_t *sock) {
|
use_min_mtu(isc_socket_t *sock) {
|
||||||
#ifdef IPV6_USE_MIN_MTU
|
#ifdef IPV6_USE_MIN_MTU
|
||||||
/* use minimum MTU */
|
/* use minimum MTU */
|
||||||
if (sock->pf == AF_INET6) {
|
if (sock->pf == AF_INET6) {
|
||||||
@@ -1440,6 +1440,8 @@ use_min_mtu(isc__socket_t *sock) {
|
|||||||
(void)setsockopt(sock->fd, IPPROTO_IPV6, IPV6_USE_MIN_MTU,
|
(void)setsockopt(sock->fd, IPPROTO_IPV6, IPV6_USE_MIN_MTU,
|
||||||
(void *)&on, sizeof(on));
|
(void *)&on, sizeof(on));
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
UNUSED(sock);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user