diff options
Diffstat (limited to 'src/nu_header.h')
| -rwxr-xr-x | src/nu_header.h | 12 |
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 | 22 | typedef struct { |
| 23 | BYTE WordCount; | ||
| 24 | WORD Buffer[0]; | ||
| 25 | } SMB_PARAMS; | ||
| 24 | 26 | ||
| 25 | typedef struct { | 27 | typedef 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 | ||
| 43 | enum { | 45 | typedef 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, |
