file_segment_process.h (snort-2.9.16.1) | : | file_segment_process.h (snort-2.9.17) | ||
---|---|---|---|---|
skipping to change at line 72 | skipping to change at line 72 | |||
{ | { | |||
struct in6_addr sip; | struct in6_addr sip; | |||
struct in6_addr dip; | struct in6_addr dip; | |||
uint64_t file_id; | uint64_t file_id; | |||
} FileKey; | } FileKey; | |||
typedef struct _FileEntry | typedef struct _FileEntry | |||
{ | { | |||
FileContext *context; | FileContext *context; | |||
uint8_t *file_name; | uint8_t *file_name; | |||
uint32_t file_name_size; | ||||
uint64_t offset; | uint64_t offset; | |||
FileSegment *segments; | FileSegment *segments; | |||
uint64_t file_size; | uint64_t file_size; | |||
FileCache *file_cache; | FileCache *file_cache; | |||
uint32_t file_name_size; | ||||
bool file_resume_check; | bool file_resume_check; | |||
} FileEntry; | } FileEntry; | |||
/* Create file cache to store file segments and track file | /* Create file cache to store file segments and track file | |||
* memcap: total memory available for file cache, including file contexts | * memcap: total memory available for file cache, including file contexts | |||
* cleanup_files: maximal number of files pruned when memcap reached | * cleanup_files: maximal number of files pruned when memcap reached | |||
*/ | */ | |||
FileCache *file_cache_create(uint64_t memcap, uint32_t cleanup_files); | FileCache *file_cache_create(uint64_t memcap, uint32_t cleanup_files); | |||
/* Free file cache */ | /* Free file cache */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |