Actually make use of the SMBTA_SUBRELEASE define in smb_traffic_analyzer.h. This...
authorHolger Hetterich <hhetter@novell.com>
Sun, 20 Feb 2011 10:32:39 +0000 (11:32 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 24 May 2011 19:23:22 +0000 (21:23 +0200)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue May 24 21:23:22 CEST 2011 on sn-devel-104

source3/modules/vfs_smb_traffic_analyzer.c
source3/modules/vfs_smb_traffic_analyzer.h

index 4146d78624f7381cd2424292b58a93211c7c75d4..462932ddb22aea01ad1586a2297d193d04beb564 100644 (file)
@@ -417,6 +417,17 @@ static void smb_traffic_analyzer_send_data(vfs_handle_struct *handle,
         */
        char state_flags[9] = "000000\0";
 
+       /**
+        * The first byte of the state flag string represents
+        * the modules protocol subversion number, defined
+        * in smb_traffic_analyzer.h. smbtatools/smbtad are designed
+        * to handle not yet implemented protocol enhancements
+        * by ignoring them. By recognizing the SMBTA_SUBRELEASE
+        * smbtatools can tell the user to update the client
+        * software.
+        */
+       state_flags[0] = SMBTA_SUBRELEASE;
+
        SMB_VFS_HANDLE_GET_DATA(handle, rf_sock, struct refcounted_sock, return);
 
        if (rf_sock == NULL || rf_sock->sock == -1) {
index bfc0614132d317b93c2f7db509b3caa4115b04d6..817ffd83d12e2e8d55b6a8158c3f32c6a79817e0 100644 (file)
@@ -77,7 +77,7 @@
  */
 
 /* Protocol subrelease number */
-#define SMBTA_SUBRELEASE 0
+#define SMBTA_SUBRELEASE '0'
 
 /*
  * Every data block sends a number of blocks sending common data