Ethereal-dev: [Ethereal-dev] Patch for packet-smb.c

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

From: Laurent Constantin <laurent.constantin@xxxxxx>
Date: Mon, 18 Oct 2004 12:07:24 +0200
Hello,

I don't have access to subversion, so I downloaded
ethereal-2004-10-17.tgz to send you a diff.

Here is a patch for packet-smb.c. It should be 0x8003 instead of 0x8002,
because it corresponds to "0x8000 | 3", with :
 * 0x8000 == "an OpLock was granted"
 * 3 == "The file existed and was truncated".

--- packet-smb-old.c	Thu Sep 30 03:04:34 2004
+++ packet-smb.c	Sun Oct 17 10:44:57 2004
@@ -4850,7 +4850,7 @@
 	{ 3,		"The file existed and was truncated"},
 	{ 0x8001,       "The file existed and was opened, and an OpLock was
granted"},
 	{ 0x8002,       "The file did not exist but was created, and an OpLock
was granted"},
-	{ 0x8002,       "The file existed and was truncated, and an OpLock was
granted"},
+	{ 0x8003,       "The file existed and was truncated, and an OpLock was
granted"},
 	{0,	NULL}
 };
 static const true_false_string tfs_oa_lock = {


Regards,
Laurent Constantin
--
 laurent.constantin@xxxxxx                [principal/main]
 http://www.laurentconstantin.com/        [principal/main]
 laurentconstantin@xxxxxxx                [secondaire/backup]
 http://go.to/laurentconstantin/          [secondaire/backup]
 http://laurentconstantin.est-la.com/     [secondaire/backup]
************************************************************
The contents of this email and any attachments are
confidential. They are intended for the named recipient(s)
only.
If you have received this email in error please notify the
system manager or the sender immediately and do not disclose
the contents to anyone or make copies.

* email scanned for viruses, vandals and malicious content *
************************************************************