Ethereal-dev: Re: [Ethereal-dev] [patch] packet-dsi.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 22 Apr 2002 02:29:38 -0700
On Sun, Apr 14, 2002 at 06:39:27PM +0000, didier wrote:
> For dsi, from the spec dsi.code type is not obvious. In netatalk it's
> unsigned, but offset is < 2Gig (I thing it's always 12)

	http://developer.apple.com/techpubs/macosx/Networking/AFPClient/AFPClient-8.html

says:

		In request packets, this field is ignored by the server
		for all commands except DSWrite.  For future
		compatibility, AFP clients should set this field to zero
		for all commands except DSWrite.  In request packets for
		which the command is DSWrite, this field contains a data
Error Code/	offset that is the number of bytes in the data
Enclosed Data	representing AFP command information.  The server uses
Offset		this information to collect the AFP command part of the
		packet before it accepts the data that corresponds to the
		packet.  For example, when an AFP client sends an FPWrite
		command to write data on the server, the enclosed data
		offset would be 12.  In reply packets, this field
		contains an error code.