summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_smb_traffic_analyzer.c
AgeCommit message (Collapse)AuthorFilesLines
2008-10-13Whitespace tidyup and an optimization to remove a talloc.Jeremy Allison1-7/+5
Jeremy.
2008-10-13Enable optional anonymization of user names,Holger Hetterich1-1/+24
if the configuration parameter anonymization_prefix is defined in smb.conf, and use the prefix given there.
2008-10-06Fixed build warning "passing arg from incompatible pointer type"Tim Prouty1-1/+3
The fix explicitly makes the conversion from timeval to time_t using the existing time utility functions. Compiling modules/vfs_smb_traffic_analyzer.c modules/vfs_smb_traffic_analyzer.c: In function `smb_traffic_analyzer_send_data': modules/vfs_smb_traffic_analyzer.c:173: warning: passing arg 1 of `localtime' from incompatible pointer type
2008-10-01Turn the socket connections into a refcounted list - in the common case ↵Jeremy Allison1-44/+95
there'll now only be one socket per smbd. Changed the format of the wire data to (a) include a version number (V1) as the first element. (b) removed the ";)" at the end an replaced it with a "\n". Receiver can change back if needed, and now receiver can just log "as-is" to a text file (making testing easier). Added my (C). Sorry Holger, but I've changed quite a bit now. Jeremy.
2008-09-30Convert to allocated strings. Use write_data(), not send as this doesn't ↵Jeremy Allison1-58/+42
correctly deal with EINTR. Jim and Holger please check this still works. Jeremy.
2008-09-30Remove current_user_info - not needed.Jeremy Allison1-4/+2
Jeremy.
2008-09-30Restructure the module so it connects to the remote data sinkJeremy Allison1-150/+156
on connect, and closes the socket on client disconnect. This should make it much more efficient. Store the remote fd in a private data pointer off the handle. Finally we need to remove the fstrings and convert to allocated buffer storage. Jeremy.
2008-09-25Use IPv4/v6 independent calls. Change safe_strcpy/cat to strlcpy/cat (thisJeremy Allison1-84/+97
needs changing to talloc_sprintf) and fix file descriptor resource leaks in error paths. Jim and Holger please check ! Jeremy.
2008-09-24Fix the new vfs_smb_traffic_analyzer build for static linksJim McDonough1-2/+2
2008-09-24SMB traffic analyzer vfs module from Holger Hetterich <hhetter@novell.com>Holger Hetterich1-0/+352
Used to gather data to feed to a database for live and historical analysis of usage per user, per share, etc. Helper apps to read the data still to come. This one still needs to be made ipv6 enabled (connection is made to the helper app).