s3:smb2_server: generate a header blob for the sendfile path
authorStefan Metzmacher <metze@samba.org>
Mon, 14 Oct 2013 12:18:26 +0000 (14:18 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2013 13:39:11 +0000 (14:39 +0100)
commit36efaac2597d2d36826c02f23be15e7323b09784
tree47d350f1546bce8f92aa3844bb33119a284409df
parent9d33a3f3e814e2924a423496ccc133c6c73fcd12
s3:smb2_server: generate a header blob for the sendfile path

We need to pass the NBT header, SMB2 header and SMB2 Read header
as header blob to SMB_VFS_SENDFILE(). This allows the usage
of MSG_SEND or other tricks to avoid multiple TCP packets
on the wire.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/smbd/globals.h
source3/smbd/smb2_read.c
source3/smbd/smb2_server.c