diff options
author | Holger Hetterich <hhetter@novell.com> | 2010-02-07 20:39:58 +0100 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2010-03-16 09:52:10 -0400 |
commit | f6ae16e318145224cc38180628e542bb3fc6bb8c (patch) | |
tree | 271c5520befbea99af32d4b8be9fa06ba7361648 /source3/modules/vfs_smb_traffic_analyzer.h | |
parent | 002193d34bc9ff385a866af2d39ed713a5bef1bf (diff) | |
download | samba-f6ae16e318145224cc38180628e542bb3fc6bb8c.tar.gz samba-f6ae16e318145224cc38180628e542bb3fc6bb8c.tar.bz2 samba-f6ae16e318145224cc38180628e542bb3fc6bb8c.zip |
smb_traffic_analyzer.c: optimize marshalling function and document
Collect all data that is needed, and use only one talloc_asprintf
operation to create the string of common data. This simplifies
the code a bit and is most probably faster than the old method.
Also, #define SMBTA_COMMON_DATA_COUNT as a complete string,
speeding things up because we know the value at compile time.
Diffstat (limited to 'source3/modules/vfs_smb_traffic_analyzer.h')
-rw-r--r-- | source3/modules/vfs_smb_traffic_analyzer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_smb_traffic_analyzer.h b/source3/modules/vfs_smb_traffic_analyzer.h index f3d902754e..1e8375d17b 100644 --- a/source3/modules/vfs_smb_traffic_analyzer.h +++ b/source3/modules/vfs_smb_traffic_analyzer.h @@ -85,7 +85,7 @@ * 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 +#define SMBTA_COMMON_DATA_COUNT "00016" /* * VFS Functions identifier table. In protocol version 2, every vfs |