The following patches require the size of the full sendfile() pdu.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
struct smbd_smb2_send_queue *prev, *next;
DATA_BLOB *sendfile_header;
+ uint32_t sendfile_body_size;
NTSTATUS *sendfile_status;
struct iovec *vector;
int count;
talloc_set_destructor(state, smb2_smb2_read_state_deny_destructor);
tevent_req_received(req);
state->smb2req->queue_entry.sendfile_header = &state->out_headers;
+ state->smb2req->queue_entry.sendfile_body_size = state->in_length;
talloc_set_destructor(state, smb2_sendfile_send_data);
} else {
tevent_req_received(req);