mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
GH-1507: Tolerate junk data before SIP requests
This allows for data that won't match a SIP request method to precede an actual request and generates a new 'sip_junk_before_request' weird when encountering such a situation.
This commit is contained in:
parent
0c93e2fcb8
commit
183789294f
6 changed files with 47 additions and 3 deletions
8
testing/btest/scripts/base/protocols/sip/junk.zeek
Normal file
8
testing/btest/scripts/base/protocols/sip/junk.zeek
Normal file
|
@ -0,0 +1,8 @@
|
|||
# This tests a PCAP with a few SIP commands from the Wireshark samples.
|
||||
|
||||
# @TEST-EXEC: zeek -b -r $TRACES/sip/sip-junk-before-request.pcap %INPUT
|
||||
# @TEST-EXEC: btest-diff sip.log
|
||||
# @TEST-EXEC: btest-diff weird.log
|
||||
|
||||
@load base/protocols/sip
|
||||
@load base/frameworks/notice/weird
|
Loading…
Add table
Add a link
Reference in a new issue