From 1cff5e480a046c3efa1b2ceae5a271ec5aa1e021 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 3 Dec 2003 18:46:56 +0000 Subject: Did somemassive tidying --- src/nu_header.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/nu_header.h') 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 { BYTE netbios_command; BYTE netbios_flags; WORD netbios_size; - BYTE Protocol[4]; /* Protocol identifier 0xFF,"SMB" */ + DWORD Protocol; /* Protocol identifier 0xFF,"SMB" */ BYTE Command; /* Command Code, look below */ BYTE Status[4]; BYTE Flags; @@ -17,15 +17,17 @@ typedef struct { WORD ProcessID; WORD UserID; WORD MultiplexID; - BYTE WordCount; } SMB_HEADER; -#define SIZEOF_SMB_HEADER 37 +typedef struct { + BYTE WordCount; + WORD Buffer[0]; +} SMB_PARAMS; typedef struct { WORD ByteCount; BYTE Buffer[0]; -} SMB_HEADER2; +} SMB_BYTES; /* This is the protocol identifier, each smb request must begin with this double word @@ -40,7 +42,7 @@ typedef struct { a read-only subset of this. */ -enum { +typedef enum { SMB_COM_CREATE_DIRECTORY = 0x00, SMB_COM_DELETE_DIRECTORY = 0x01, SMB_COM_OPEN = 0x02, -- cgit v1.2.3