clean up, test and pcap for transform_header added

This commit is contained in:
mauro 2019-02-21 12:01:02 +01:00
parent f1cdae2829
commit a346b01a85
10 changed files with 76 additions and 6 deletions

View file

@ -0,0 +1,14 @@
# @TEST-EXEC: bro -r $TRACES/smb/smb3.pcap %INPUT
# @TEST-EXEC: btest-diff smb_mapping.log
# @TEST-EXEC: test ! -f dpd.log
# @TEST-EXEC: test ! -f weird.log
# @TEST-EXEC: btest-diff .stdout
@load base/protocols/smb
# Add a test for SMB2 transform header.
event smb2_transform_header(c: connection, hdr: SMB2::Transform_header)
{
print fmt("smb2_transform_header %s -> %s:%d %s", c$id$orig_h, c$id$resp_h, c$id$resp_p, hdr);
}