smb_traffic_analyzer.c: optimize marshalling function and document
commitf6ae16e318145224cc38180628e542bb3fc6bb8c
authorHolger Hetterich <hhetter@novell.com>
Sun, 7 Feb 2010 19:39:58 +0000 (7 20:39 +0100)
committerJim McDonough <jmcd@samba.org>
Tue, 16 Mar 2010 13:52:10 +0000 (16 09:52 -0400)
tree271c5520befbea99af32d4b8be9fa06ba7361648
parent002193d34bc9ff385a866af2d39ed713a5bef1bf
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.c
source3/modules/vfs_smb_traffic_analyzer.h