summaryrefslogtreecommitdiff
path: root/source3/smbd/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 3b922af51f..dd623e69a5 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -57,6 +57,18 @@ uint16 get_current_mid(void)
return SVAL(InBuffer,smb_mid);
}
+/*
+ * Initialize a struct smb_request from an inbuf
+ */
+
+void init_smb_request(struct smb_request *req, const uint8 *inbuf)
+{
+ req->flags2 = SVAL(inbuf, smb_flg2);
+ req->smbpid = SVAL(inbuf, smb_pid);
+ req->mid = SVAL(inbuf, smb_mid);
+ req->vuid = SVAL(inbuf, smb_uid);
+}
+
/****************************************************************************
structure to hold a linked list of queued messages.
for processing.