1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

resolv: Enable full ICMP errors for UDP DNS sockets [BZ #24047]

The Linux kernel suppresses some ICMP error messages by default for
UDP sockets.  This commit enables full ICMP error reporting,
hopefully resulting in faster failover to working name servers.
This commit is contained in:
Florian Weimer
2019-03-12 11:40:47 +01:00
parent 5fbcd76351
commit 08504de718
5 changed files with 66 additions and 1 deletions

View File

@@ -100,4 +100,10 @@ libc_hidden_proto (__inet_pton_length)
/* Called as part of the thread shutdown sequence. */
void __res_thread_freeres (void) attribute_hidden;
/* The Linux kernel does not enable all ICMP messages on a UDP socket
by default. A call this function enables full error reporting for
the socket FD. FAMILY must be AF_INET or AF_INET6. Returns 0 on
success, -1 on failure. */
int __res_enable_icmp (int family, int fd) attribute_hidden;
#endif /* _RESOLV_INTERNAL_H */