summaryrefslogtreecommitdiffstats
path: root/net/base/net_errors_posix.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-27 19:33:31 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-27 19:33:31 +0000
commit4865667001832fb7bebb6e85e07764923ca0e441 (patch)
tree4057bc31f5fc4207e27bbe51828dafe509b25d9a /net/base/net_errors_posix.cc
parent1e24b164c1a42626ebae8132c39abb0c664e2587 (diff)
downloadchromium_src-4865667001832fb7bebb6e85e07764923ca0e441.zip
chromium_src-4865667001832fb7bebb6e85e07764923ca0e441.tar.gz
chromium_src-4865667001832fb7bebb6e85e07764923ca0e441.tar.bz2
Bind() methods for TCP sockets
BUG=80245 TEST=None Review URL: http://codereview.chromium.org/7004055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87066 0039d316-1c4b-4281-b951-d872f2087c98
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: