summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_smb_traffic_analyzer.h
diff options
context:
space:
mode:
authorHolger Hetterich <hhetter@novell.com>2010-02-02 20:04:40 +0100
committerJim McDonough <jmcd@samba.org>2010-03-16 09:52:10 -0400
commit69d7d6c01a01cc81f7e28593701d3425adfce8ec (patch)
tree8937602e723a5c66d8320fabe8817a84cfb192a5 /source3/modules/vfs_smb_traffic_analyzer.h
parent4940da2e99647b2d6ae3b4abf78c9904e4390074 (diff)
downloadsamba-69d7d6c01a01cc81f7e28593701d3425adfce8ec.tar.gz
samba-69d7d6c01a01cc81f7e28593701d3425adfce8ec.tar.bz2
samba-69d7d6c01a01cc81f7e28593701d3425adfce8ec.zip
Add the number of common data blocks to the protocol.
Always send the number of common data blocks first. This way, we can make the protocol backwards compatible. A receiver running with an older subprotocol can just ignore if a newer sender sends more common data. Add a few remarks to the marshalling function. Add two #define lines defining the protocol subrelease number and the number of common data blocks to the header file.
Diffstat (limited to 'source3/modules/vfs_smb_traffic_analyzer.h')
-rw-r--r--source3/modules/vfs_smb_traffic_analyzer.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/source3/modules/vfs_smb_traffic_analyzer.h b/source3/modules/vfs_smb_traffic_analyzer.h
index 7a3c358a0e..f3d902754e 100644
--- a/source3/modules/vfs_smb_traffic_analyzer.h
+++ b/source3/modules/vfs_smb_traffic_analyzer.h
@@ -19,12 +19,6 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-
-/*
- * Protocol V2.0 definition
- *
-/
-
/**
* Protocol version 2.0 description
*
@@ -82,6 +76,16 @@
*
*/
+/* Protocol subrelease number */
+#define SMBTA_SUBRELEASE 0
+
+/*
+ * Every data block sends a number of blocks sending common data
+ * we send the number of "common data blocks" to come very first
+ * so that if the receiver is using an older version of the protocol
+ * it knows which blocks it can ignore.
+ */
+#define SMBTA_COMMON_DATA_COUNT 6
/*
* VFS Functions identifier table. In protocol version 2, every vfs