s3:smb2_server: generate a header blob for the sendfile path
commit83f33440bb635bb0f3f82997108cd8183664af19
authorStefan Metzmacher <metze@samba.org>
Mon, 14 Oct 2013 12:18:26 +0000 (14 14:18 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Dec 2013 11:58:35 +0000 (10 12:58 +0100)
tree59d9f6ee3ec12e81b1bef8a165e81a5164364dc5
parent3efa732ab65ad1ffa19e7235c754e693a562c3a9
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>
(cherry picked from commit 36efaac2597d2d36826c02f23be15e7323b09784)
source3/smbd/globals.h
source3/smbd/smb2_read.c
source3/smbd/smb2_server.c