bool create_outbuf(TALLOC_CTX *mem_ctx, struct smb_request *req,
const uint8_t *inbuf, char **outbuf,
uint8_t num_words, uint32_t num_bytes);
-void construct_reply_common_req(struct smb_request *req, char *outbuf);
+void construct_smb1_reply_common_req(struct smb_request *req, char *outbuf);
void reply_outbuf(struct smb_request *req, uint8_t num_words, uint32_t num_bytes);
void process_smb(struct smbXsrv_connection *xconn,
uint8_t *inbuf, size_t nread, size_t unread_bytes,
return NT_STATUS_NO_MEMORY;
}
- construct_reply_common_req(smbreq, (char *)aio_ex->outbuf.data);
+ construct_smb1_reply_common_req(smbreq, (char *)aio_ex->outbuf.data);
srv_smb1_set_message((char *)aio_ex->outbuf.data, 12, 0, True);
SCVAL(aio_ex->outbuf.data,smb_vwv0,0xFF); /* Never a chained reply. */
SCVAL(smb_buf(aio_ex->outbuf.data), 0, 0); /* padding byte */
}
aio_ex->write_through = BITSETW(smbreq->vwv+7,0);
- construct_reply_common_req(smbreq, (char *)aio_ex->outbuf.data);
+ construct_smb1_reply_common_req(smbreq, (char *)aio_ex->outbuf.data);
srv_smb1_set_message((char *)aio_ex->outbuf.data, 6, 0, True);
SCVAL(aio_ex->outbuf.data,smb_vwv0,0xFF); /* Never a chained reply. */
header = data_blob_const(headerbuf, sizeof(headerbuf));
- construct_reply_common_req(req, (char *)headerbuf);
+ construct_smb1_reply_common_req(req, (char *)headerbuf);
setup_readX_header((char *)headerbuf, smb_maxcnt);
nread = SMB_VFS_SENDFILE(xconn->transport.sock, fsp, &header,
goto nosendfile_read;
}
- construct_reply_common_req(req, (char *)headerbuf);
+ construct_smb1_reply_common_req(req, (char *)headerbuf);
setup_readX_header((char *)headerbuf, smb_maxcnt);
/* Send out the header. */
SSVAL(outbuf,smb_mid,SVAL(inbuf,smb_mid));
}
-void construct_reply_common_req(struct smb_request *req, char *outbuf)
+void construct_smb1_reply_common_req(struct smb_request *req, char *outbuf)
{
construct_smb1_reply_common(req->cmd, req->inbuf, outbuf);
}