summaryrefslogtreecommitdiff
path: root/source3/smbd/globals.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-05 20:52:55 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-06 21:54:35 +0200
commit721096b1ad58e97a20896fa74fa8e06013bb8a15 (patch)
treed8f5f11273a75f872e89899df87d2a9d49e28976 /source3/smbd/globals.h
parentfbd663c1437c104e9bc7f8f51fdef3747a111935 (diff)
downloadsamba-721096b1ad58e97a20896fa74fa8e06013bb8a15.tar.gz
samba-721096b1ad58e97a20896fa74fa8e06013bb8a15.tar.bz2
samba-721096b1ad58e97a20896fa74fa8e06013bb8a15.zip
s3:smb2_server: make use of smbd_smb2_inbuf_parse_compound() in smbd_smb2_request_read*()
This changes the way we read SMB2 traffic from the socket, now as create just one large buffer for the whole NBT payload and then split it into iovec elements in smbd_smb2_inbuf_parse_compound() metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Aug 6 21:54:35 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd/globals.h')
-rw-r--r--source3/smbd/globals.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index 9a8910cdfd..967fe858e8 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -493,10 +493,8 @@ struct smbd_smb2_request {
#define SMBD_SMB2_OUT_DYN_LEN(req) (SMBD_SMB2_OUT_DYN_IOV(req)->iov_len)
struct {
- /* the NBT header is not allocated */
- uint8_t nbt_hdr[4];
/*
- * vector[0] NBT
+ * vector[0] TRANSPORT HEADER
* .
* vector[1] SMB2
* vector[2] fixed body
@@ -518,7 +516,7 @@ struct smbd_smb2_request {
/* the NBT header is not allocated */
uint8_t nbt_hdr[4];
/*
- * vector[0] NBT
+ * vector[0] TRANSPORT HEADER
* .
* vector[1] SMB2
* vector[2] fixed body