summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-10-01 06:50:25 +0000
committerJeremy Allison <jra@samba.org>2002-10-01 06:50:25 +0000
commit736a7bab487d7e217eed452e2089adb6b4164ad5 (patch)
tree8e87f5dd365618241dbff8c79f3b2284ea92a1e2 /source/include
parentef7bcaf1b7e1ca073b27a8836c6aa86e112b5bee (diff)
downloadsamba-736a7bab487d7e217eed452e2089adb6b4164ad5.tar.gz
samba-736a7bab487d7e217eed452e2089adb6b4164ad5.tar.xz
samba-736a7bab487d7e217eed452e2089adb6b4164ad5.zip
Cope with rw errors and timeout to peer.
Jeremy.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/client.h2
-rw-r--r--source/include/smb.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/source/include/client.h b/source/include/client.h
index 7a8889edc52..17fd1500658 100644
--- a/source/include/client.h
+++ b/source/include/client.h
@@ -70,7 +70,7 @@ typedef struct smb_sign_info {
struct cli_state {
int port;
int fd;
- int smb_read_error; /* Copy of last read error. */
+ int smb_rw_error; /* Copy of last read or write error. */
uint16 cnum;
uint16 pid;
uint16 mid;
diff --git a/source/include/smb.h b/source/include/smb.h
index c39ebed950f..f58e3adf545 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -161,6 +161,8 @@ typedef uint16 smb_ucs2_t;
typedef smb_ucs2_t wpstring[PSTRING_LEN];
typedef smb_ucs2_t wfstring[FSTRING_LEN];
+/* This error code can go into the client smb_rw_error. */
+#define WRITE_ERROR 4
#ifdef WORDS_BIGENDIAN
#define UCS2_SHIFT 8