summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-05-08 01:23:11 +0000
committerJeremy Allison <jra@samba.org>1998-05-08 01:23:11 +0000
commit9273102ea54d010043e6fdfaf1c61116eb93562e (patch)
treeb8acb68c2c8a4049cfaabd8d678d8e6a1d6798e0 /source3/include
parent4cc7a1b0ef893941446c5f03b9372966a453cb6a (diff)
downloadsamba-9273102ea54d010043e6fdfaf1c61116eb93562e.tar.gz
samba-9273102ea54d010043e6fdfaf1c61116eb93562e.tar.bz2
samba-9273102ea54d010043e6fdfaf1c61116eb93562e.zip
smb.h: Supporting defines for NT trans calls.
trans2.c: Paranoia bugfixes added when studying nttrans.c. Jeremy. (This used to be commit 94e70edef91c71703a7ebcdaf2b5a2bdce940a69)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 8b7ad6ea92..429ce87f40 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -895,6 +895,31 @@ struct parm_struct
#define smb_droff smb_vwv7
#define smb_drdisp smb_vwv8
+/* these are for the NT trans primary request. */
+#define smb_nt_MaxSetupCount smb_vwv0
+#define smb_nt_Flags (smb_vwv0 + 1)
+#define smb_nt_TotalParameterCount (smb_vwv0 + 3)
+#define smb_nt_TotalDataCount (smb_vwv0 + 7)
+#define smb_nt_MaxParameterCount (smb_vwv0 + 11)
+#define smb_nt_MaxDataCount (smb_vwv0 + 15)
+#define smb_nt_ParameterCount (smb_vwv0 + 19)
+#define smb_nt_ParameterOffset (smb_vwv0 + 23)
+#define smb_nt_DataCount (smb_vwv0 + 27)
+#define smb_nt_DataOffset (smb_vwv0 + 31)
+#define smb_nt_SetupCount (smb_vwv0 + 35)
+#define smb_nt_Function (smb_vwv0 + 36)
+#define smb_nt_SetupStart (smb_vwv0 + 39)
+
+/* these are for the NT trans secondary request. */
+#define smb_nts_TotalParameterCount (smb_vwv0 + 3)
+#define smb_nts_TotalDataCount (smb_vwv0 + 7)
+#define smb_nts_ParameterCount (smb_vwv0 + 11)
+#define smb_nts_ParameterOffset (smb_vwv0 + 15)
+#define smb_nts_ParameterDisplacement (smb_vwv0 + 19)
+#define smb_nts_DataCount (smb_vwv0 + 23)
+#define smb_nts_DataOffset (smb_vwv0 + 27)
+#define smb_nts_DataDisplacement (smb_vwv0 + 31)
+
/* where to find the base of the SMB packet proper */
#define smb_base(buf) (((char *)(buf))+4)