From 691e108acb1ba7b0f42ce05e2fa324ffe48ea55a Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Tue, 15 Aug 2000 01:30:34 +0000 Subject: [PATCH] pullup: On send, treat EPERM like ISC_R_HOSTUNREACH. send() seems to return EPERM on Linux when firewall rules block the send. --- lib/isc/unix/socket.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index 688b112f1cb..9f33588cd34 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -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 @@ -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 -- 2.47.3