diff options
author | Jeremy Allison <jra@samba.org> | 2002-10-01 06:50:38 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-10-01 06:50:38 +0000 |
commit | 8147df0b6b4674670e70b45c603e8323e5c61c33 (patch) | |
tree | 1829641fa33ccb9eda1a3fd96f1bdf77b6658ac4 /source3/include | |
parent | 88e481ec13505f7e870a2172db3d4edf5ce47caf (diff) | |
download | samba-8147df0b6b4674670e70b45c603e8323e5c61c33.tar.gz samba-8147df0b6b4674670e70b45c603e8323e5c61c33.tar.bz2 samba-8147df0b6b4674670e70b45c603e8323e5c61c33.zip |
Cope with rw errors and timeout to peer.
Jeremy.
(This used to be commit d8d351eb01ea7c84828dbc96224d7b13d643b558)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/client.h | 2 | ||||
-rw-r--r-- | source3/include/smb.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source3/include/client.h b/source3/include/client.h index 7a8889edc5..17fd150065 100644 --- a/source3/include/client.h +++ b/source3/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/source3/include/smb.h b/source3/include/smb.h index c39ebed950..f58e3adf54 100644 --- a/source3/include/smb.h +++ b/source3/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 |