mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Updates the files event api and brings file reassembly up to master.
This commit is contained in:
parent
42b2d56279
commit
cafd35e746
47 changed files with 515 additions and 637 deletions
|
@ -56,18 +56,6 @@ event file_new(f: fa_file)
|
|||
[$chunk_event=file_chunk,
|
||||
$stream_event=file_stream]);
|
||||
}
|
||||
|
||||
if ( f?$bof_buffer )
|
||||
{
|
||||
print "FILE_BOF_BUFFER";
|
||||
print f$bof_buffer[0:11];
|
||||
}
|
||||
|
||||
if ( f?$mime_type )
|
||||
{
|
||||
print "MIME_TYPE";
|
||||
print f$mime_type;
|
||||
}
|
||||
}
|
||||
|
||||
event file_over_new_connection(f: fa_file, c: connection, is_orig: bool)
|
||||
|
@ -93,6 +81,18 @@ event file_state_remove(f: fa_file)
|
|||
for ( cid in f$conns )
|
||||
print cid;
|
||||
|
||||
if ( f?$bof_buffer )
|
||||
{
|
||||
print "FILE_BOF_BUFFER";
|
||||
print f$bof_buffer[0:11];
|
||||
}
|
||||
|
||||
if ( f$info?$mime_type )
|
||||
{
|
||||
print "MIME_TYPE";
|
||||
print f$info$mime_type;
|
||||
}
|
||||
|
||||
if ( f?$total_bytes )
|
||||
print "total bytes: " + fmt("%s", f$total_bytes);
|
||||
if ( f?$source )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue