mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Fixed IP_PMTUDISC_OMIT typos
This commit is contained in:
@@ -2863,17 +2863,17 @@ opensocket(isc__socketmgr_t *manager, isc__socket_t *sock,
|
|||||||
*/
|
*/
|
||||||
if (sock->pf == AF_INET) {
|
if (sock->pf == AF_INET) {
|
||||||
int action;
|
int action;
|
||||||
#ifdef defined(IP_PMTUDISC_OMIT)
|
#if defined(IP_PMTUDISC_OMIT)
|
||||||
action = IP_PMTUDISC_OMIT;
|
action = IP_PMTUDISC_OMIT;
|
||||||
if (setsockopt(sock->fd, IPPROTO_IPV6,
|
if (setsockopt(sock->fd, IPPROTO_IP,
|
||||||
IPV6_MTU_DISCOVER, &action,
|
IP_MTU_DISCOVER, &action,
|
||||||
sizeof(action)) < 0) {
|
sizeof(action)) < 0) {
|
||||||
#endif
|
#endif
|
||||||
action = IP_PMTUDISC_DONT;
|
action = IP_PMTUDISC_DONT;
|
||||||
(void)setsockopt(sock->fd, IPPROTO_IP,
|
(void)setsockopt(sock->fd, IPPROTO_IP,
|
||||||
IP_MTU_DISCOVER,
|
IP_MTU_DISCOVER,
|
||||||
&action, sizeof(action));
|
&action, sizeof(action));
|
||||||
#ifdef defined(IP_PMTUDISC_OMIT)
|
#if defined(IP_PMTUDISC_OMIT)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user