On send, treat EPERM like ISC_R_HOSTUNREACH.  send() seems to return EPERM
on Linux when firewall rules block the send.
This commit is contained in:
Andreas Gustafsson
2000-08-15 01:30:34 +00:00
parent 924ffce22a
commit 691e108acb
+2 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: socket.c,v 1.142.2.2 2000/07/10 19:46:31 bwelling Exp $ */
/* $Id: socket.c,v 1.142.2.3 2000/08/15 01:30:34 gson Exp $ */
#include <config.h>
@@ -900,6 +900,7 @@ doio_send(isc_socket_t *sock, isc_socketevent_t *dev) {
ALWAYS_HARD(EHOSTUNREACH, ISC_R_HOSTUNREACH);
ALWAYS_HARD(ENOBUFS, ISC_R_NORESOURCES);
ALWAYS_HARD(EADDRNOTAVAIL, ISC_R_ADDRNOTAVAIL);
ALWAYS_HARD(EPERM, ISC_R_HOSTUNREACH);
#undef SOFT_OR_HARD
#undef ALWAYS_HARD