summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-07 11:44:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:52 -0500
commitc4a0e36143fed4ca2ba29ddc1b52dd6e22d713fb (patch)
tree76fda4fd7475cb93676d68dee41c65cd9dae2208 /source4
parentf7183342c8b9e521da8a1feb4aa24bd73d7ed358 (diff)
downloadsamba-c4a0e36143fed4ca2ba29ddc1b52dd6e22d713fb.tar.gz
samba-c4a0e36143fed4ca2ba29ddc1b52dd6e22d713fb.tar.bz2
samba-c4a0e36143fed4ca2ba29ddc1b52dd6e22d713fb.zip
r11546: add more errno ntstatus mappings, to get more usefull errors from socket_wrapper
metze (This used to be commit 6375a9a95da1eb2d5fd60b265047d98b264ff93f)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/util/errormap.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c
index 99154d2cb0..526e9085c9 100644
--- a/source4/libcli/util/errormap.c
+++ b/source4/libcli/util/errormap.c
@@ -1320,6 +1320,21 @@ const struct unix_error_map unix_nt_errmap[] = {
#ifdef EFBIG
{ EFBIG, NT_STATUS_DISK_FULL },
#endif
+#ifdef EADDRNOTAVAIL
+ { EADDRNOTAVAIL,NT_STATUS_ADDRESS_NOT_ASSOCIATED },
+#endif
+#ifdef ESOCKTNOSUPPORT
+ { ESOCKTNOSUPPORT,NT_STATUS_INVALID_PARAMETER_MIX },
+#endif
+#ifdef EAFNOSUPPORT
+ { EAFNOSUPPORT, NT_STATUS_INVALID_PARAMETER_MIX },
+#endif
+#ifdef ENOPROTOOPT
+ { ENOPROTOOPT, NT_STATUS_INVALID_PARAMETER_MIX },
+#endif
+#ifdef ENODEV
+ { ENODEV, NT_STATUS_NO_SUCH_DEVICE },
+#endif
{ 0, NT_STATUS_UNSUCCESSFUL }
};