summaryrefslogtreecommitdiff
path: root/src/nu_header.h
diff options
context:
space:
mode:
authorerdgeist <>2003-12-03 18:46:56 +0000
committererdgeist <>2003-12-03 18:46:56 +0000
commit1cff5e480a046c3efa1b2ceae5a271ec5aa1e021 (patch)
treef098ab1dac61ee464965a55ca5309b72b7a9da7a /src/nu_header.h
parent243841f9486c8b922b8e071ca4b96125808353fe (diff)
Did somemassive tidying
Diffstat (limited to 'src/nu_header.h')
-rwxr-xr-xsrc/nu_header.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nu_header.h b/src/nu_header.h
index de43a08..378268c 100755
--- a/src/nu_header.h
+++ b/src/nu_header.h
@@ -7,7 +7,7 @@ typedef struct {
7 BYTE netbios_command; 7 BYTE netbios_command;
8 BYTE netbios_flags; 8 BYTE netbios_flags;
9 WORD netbios_size; 9 WORD netbios_size;
10 BYTE Protocol[4]; /* Protocol identifier 0xFF,"SMB" */ 10 DWORD Protocol; /* Protocol identifier 0xFF,"SMB" */
11 BYTE Command; /* Command Code, look below */ 11 BYTE Command; /* Command Code, look below */
12 BYTE Status[4]; 12 BYTE Status[4];
13 BYTE Flags; 13 BYTE Flags;
@@ -17,15 +17,17 @@ typedef struct {
17 WORD ProcessID; 17 WORD ProcessID;
18 WORD UserID; 18 WORD UserID;
19 WORD MultiplexID; 19 WORD MultiplexID;
20 BYTE WordCount;
21} SMB_HEADER; 20} SMB_HEADER;
22 21
23#define SIZEOF_SMB_HEADER 37 22typedef struct {
23 BYTE WordCount;
24 WORD Buffer[0];
25} SMB_PARAMS;
24 26
25typedef struct { 27typedef struct {
26 WORD ByteCount; 28 WORD ByteCount;
27 BYTE Buffer[0]; 29 BYTE Buffer[0];
28} SMB_HEADER2; 30} SMB_BYTES;
29 31
30/* This is the protocol identifier, each smb 32/* This is the protocol identifier, each smb
31 request must begin with this double word 33 request must begin with this double word
@@ -40,7 +42,7 @@ typedef struct {
40 a read-only subset of this. 42 a read-only subset of this.
41*/ 43*/
42 44
43enum { 45typedef enum {
44 SMB_COM_CREATE_DIRECTORY = 0x00, 46 SMB_COM_CREATE_DIRECTORY = 0x00,
45 SMB_COM_DELETE_DIRECTORY = 0x01, 47 SMB_COM_DELETE_DIRECTORY = 0x01,
46 SMB_COM_OPEN = 0x02, 48 SMB_COM_OPEN = 0x02,