From f6ae16e318145224cc38180628e542bb3fc6bb8c Mon Sep 17 00:00:00 2001 From: Holger Hetterich Date: Sun, 7 Feb 2010 20:39:58 +0100 Subject: 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. --- source3/modules/vfs_smb_traffic_analyzer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/modules/vfs_smb_traffic_analyzer.h') 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 -- cgit