Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Petr Menšík
BIND
Commits
3d37f10b
Commit
3d37f10b
authored
Aug 10, 2000
by
Brian Wellington
Browse files
On send, treat EPERM like ISC_R_HOSTUNREACH. send() seems to return EPERM
on Linux when firewall rules block the send.
parent
9be4279a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/isc/unix/socket.c
View file @
3d37f10b
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.15
4
2000/08/10
00:05
:4
3
bwelling Exp $ */
/* $Id: socket.c,v 1.15
5
2000/08/10
21:47
:4
6
bwelling Exp $ */
#include <config.h>
...
...
@@ -913,6 +913,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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment