summaryrefslogtreecommitdiffstats
path: root/net/base/net_errors_posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/net_errors_posix.cc')
-rw-r--r--net/base/net_errors_posix.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/base/net_errors_posix.cc b/net/base/net_errors_posix.cc
index e977ef4..6958801 100644
--- a/net/base/net_errors_posix.cc
+++ b/net/base/net_errors_posix.cc
@@ -36,6 +36,7 @@ Error MapSystemError(int os_error) {
case EHOSTUNREACH:
case EHOSTDOWN:
case ENETUNREACH:
+ case EAFNOSUPPORT:
return ERR_ADDRESS_UNREACHABLE;
case EADDRNOTAVAIL:
return ERR_ADDRESS_INVALID;
@@ -43,6 +44,8 @@ Error MapSystemError(int os_error) {
return ERR_MSG_TOO_BIG;
case ENOTCONN:
return ERR_SOCKET_NOT_CONNECTED;
+ case EINVAL:
+ return ERR_INVALID_ARGUMENT;
case 0:
return OK;
default: