Skip to content

Commit

Permalink
add mapping for ADDRNOTAVAIL
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Aug 17, 2024
1 parent 125d1a5 commit 63cf11b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/ares__socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ static ares_conn_err_t ares__socket_deref_error(int err)
return ARES_CONN_ERR_INTERRUPT;
case EAFNOSUPPORT:
return ARES_CONN_ERR_AFNOSUPPORT;
case EADDRNOTAVAIL:
return ARES_CONN_ERR_BADADDR;
default:
break;
}
Expand Down
1 change: 1 addition & 0 deletions src/lib/ares_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ typedef enum {
ARES_CONN_ERR_NETUNREACH = 10, /*!< Network Unreachable */
ARES_CONN_ERR_INTERRUPT = 11, /*!< Call interrupted by signal, repeat */
ARES_CONN_ERR_AFNOSUPPORT = 12, /*!< Address family not supported */
ARES_CONN_ERR_BADADDR = 13, /*!< Bad Address / Unavailable */
ARES_CONN_ERR_FAILURE = 99 /*!< Generic failure */
} ares_conn_err_t;

Expand Down

0 comments on commit 63cf11b

Please sign in to comment.