mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
FileAnalysis: move unique file handle string generation to script-layer
And add minimal integration with HTTP analyzer.
This commit is contained in:
parent
1f6cac9b6d
commit
3dd513e26e
18 changed files with 365 additions and 81 deletions
37
src/file_analysis/PendingFile.h
Normal file
37
src/file_analysis/PendingFile.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
#ifndef FILE_ANALYSIS_PENDINGFILE_H
|
||||
#define FILE_ANALYSIS_PENDINGFILE_H
|
||||
|
||||
#include "Conn.h"
|
||||
|
||||
namespace file_analysis {
|
||||
|
||||
class PendingFile {
|
||||
public:
|
||||
|
||||
PendingFile(const u_char* arg_data, uint64 arg_len, uint64 arg_offset,
|
||||
Connection* arg_conn, bool arg_is_orig);
|
||||
|
||||
PendingFile(const u_char* arg_data, uint64 arg_len,
|
||||
Connection* arg_conn, bool arg_is_orig);
|
||||
|
||||
PendingFile(const PendingFile& other);
|
||||
|
||||
PendingFile& operator=(const PendingFile& other);
|
||||
|
||||
~PendingFile();
|
||||
|
||||
void Retry() const;
|
||||
|
||||
private:
|
||||
|
||||
bool is_linear;
|
||||
const u_char* data;
|
||||
uint64 len;
|
||||
uint64 offset;
|
||||
Connection* conn;
|
||||
bool is_orig;
|
||||
};
|
||||
|
||||
} // namespace file_analysis
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue