1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-11 00:23:51 +03:00

r11724: - move checks packet size and protocol version,

before we create the request structure
- move code into one function

metze
This commit is contained in:
Stefan Metzmacher
2005-11-14 13:50:56 +00:00
committed by Gerald (Jerry) Carter
parent 838aac5e20
commit 96345b1c46
2 changed files with 56 additions and 53 deletions

View File

@@ -204,6 +204,8 @@ struct data_blob_list_item {
/* 64 bit time (100 nanosec) 1601 - cifs6.txt, section 3.5, page 30, 4 byte aligned */
typedef uint64_t NTTIME;
#define SMB_MAGIC 0x424D53FF /* 0xFF 'S' 'M' 'B' */
/* the basic packet size, assuming no words or bytes. Does not include the NBT header */
#define MIN_SMB_SIZE 35