diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_smb_traffic_analyzer.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/source3/modules/vfs_smb_traffic_analyzer.c b/source3/modules/vfs_smb_traffic_analyzer.c index 68a4991e0f..6155c7e7c7 100644 --- a/source3/modules/vfs_smb_traffic_analyzer.c +++ b/source3/modules/vfs_smb_traffic_analyzer.c @@ -66,12 +66,12 @@ typedef struct chdir_data { const char *path; int result; } t_chdir; - + /* rw_data used for read/write/pread/pwrite */ -struct rw_data { +typedef struct rw_data { char *filename; size_t len; -}; +} t_rw; static int vfs_smb_traffic_analyzer_debug_level = DBGC_VFS; @@ -380,6 +380,17 @@ static void smb_traffic_analyzer_send_data(vfs_handle_struct *handle, talloc_asprintf(talloc_tos(), "%u", \ ((t_chdir *) data)->result)); break; + + case vfs_id_write: + case vfs_id_pwrite: + case vfs_id_read: + case vfs_id_pread: ; + str = smb_traffic_analyzer_create_string( tm, \ + seconds, handle, username, \ + 2, ((t_rw *) data)->filename, \ + talloc_asprintf(talloc_tos(), "%u", \ + ((t_rw *) data)->len)); + break; default: DEBUG(1, ("smb_traffic_analyzer: error! " "wrong VFS operation id detected!\n")); |