mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/ncp-fixes'
* origin/topic/jsiwek/ncp-fixes: Add NCP::max_frame_size tuning option Migrate NCP analyzer to use latest analyzer API
This commit is contained in:
commit
a43c7d0691
15 changed files with 1012 additions and 39 deletions
20
testing/btest/scripts/base/protocols/ncp/event.bro
Normal file
20
testing/btest/scripts/base/protocols/ncp/event.bro
Normal file
|
@ -0,0 +1,20 @@
|
|||
# @TEST-EXEC: bro -C -r $TRACES/ncp.pcap %INPUT >out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
redef likely_server_ports += { 524/tcp };
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
const ports = { 524/tcp };
|
||||
Analyzer::register_for_ports(Analyzer::ANALYZER_NCP, ports);
|
||||
}
|
||||
|
||||
event ncp_request(c: connection, frame_type: count, length: count, func: count)
|
||||
{
|
||||
print "ncp request", frame_type, length, func;
|
||||
}
|
||||
|
||||
event ncp_reply(c: connection, frame_type: count, length: count, req_frame: count, req_func: count, completion_code: count)
|
||||
{
|
||||
print "ncp reply", frame_type, length, req_frame, req_func, completion_code;
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
# @TEST-EXEC: bro -C -r $TRACES/ncp.pcap %INPUT NCP::max_frame_size=150 >out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
redef likely_server_ports += { 524/tcp };
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
const ports = { 524/tcp };
|
||||
Analyzer::register_for_ports(Analyzer::ANALYZER_NCP, ports);
|
||||
}
|
||||
|
||||
event ncp_request(c: connection, frame_type: count, length: count, func: count)
|
||||
{
|
||||
print "ncp request", frame_type, length, func;
|
||||
}
|
||||
|
||||
event ncp_reply(c: connection, frame_type: count, length: count, req_frame: count, req_func: count, completion_code: count)
|
||||
{
|
||||
print "ncp reply", frame_type, length, req_frame, req_func, completion_code;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue