[cifs-protocol] Re: [Pfif] Correction Assistance Request:
DataOffset in WRITE_ANDX request
rguthrie at microsoft.com
Tue Nov 11 20:14:05 GMT 2008
To answer your follow-up question, the Offset is relative to the header, but for SMB1 compounding there is a single header and the AndXOffset is in the request parameters. As such, the offset is from the beginning of the packet.
Open Protocols Support Team
Support Escalation Engineer, US-CSS DSC PROTOCOL TEAM
Tel: +1 (469) 775-7794
E-mail: rguthrie at microsoft.com
From: Volker Lendecke [mailto:Volker.Lendecke at SerNet.DE]
Sent: Tuesday, November 11, 2008 2:40 AM
To: Hongwei Sun
Cc: Richard Guthrie; pfif at tridgell.net; cifs-protocol at samba.org
Subject: Re: [cifs-protocol] Re: [Pfif] Correction Assistance Request: DataOffset in WRITE_ANDX request
On Mon, Nov 10, 2008 at 02:12:30PM -0800, Hongwei Sun wrote:
> The following is the information you requested
> regarding DataOffset in WRITE_ANDX request.
> Each request is self-describing, so the offset is
> always from the start of the SMB Header for the
> current message. In this case, the DataOffset is
> relative to the SMB_HEADER of the current request (not
> just the first request). The only offset in either
> protocol that spans multiple requests is the
> "AndXOffset/NextCommand" that links the requests.
> Please let us know if you have further questions.
This would apply to SMB2 chaining, where each request is indeed self-contained. This is not the case in SMB1, where there is only one SMB header for multiple SMB commands. How does this fit your description?
More information about the cifs-protocol