From 721096b1ad58e97a20896fa74fa8e06013bb8a15 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 5 Aug 2012 20:52:55 +0200 Subject: 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 Autobuild-Date(master): Mon Aug 6 21:54:35 CEST 2012 on sn-devel-104 --- source3/smbd/globals.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source3/smbd/globals.h') 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 -- cgit