summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-14 13:50:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:18 -0500
commit7dd6e5fe9250b0e8653dd40cc3a84a23f2f71d5a (patch)
treec0f615801f95a5d9f2c84351ef4d39914f9a472e /source4/include
parent36639831c0e20a38a5e054cc8f0d97bf8f0b73d6 (diff)
downloadsamba-7dd6e5fe9250b0e8653dd40cc3a84a23f2f71d5a.tar.gz
samba-7dd6e5fe9250b0e8653dd40cc3a84a23f2f71d5a.tar.bz2
samba-7dd6e5fe9250b0e8653dd40cc3a84a23f2f71d5a.zip
r11724: - move checks packet size and protocol version,
before we create the request structure - move code into one function metze (This used to be commit 96345b1c465c6cdf480f6e49d3c437cfe4d93c2c)
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/smb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/include/smb.h b/source4/include/smb.h
index fcde3848dc..cb59adb84c 100644
--- a/source4/include/smb.h
+++ b/source4/include/smb.h
@@ -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