mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Merge remote-tracking branch 'origin/fastpath'
* origin/fastpath: Increase timeouts of some unit tests. Fix memory leak in modbus analyzer. add channel_id tls extension number.
This commit is contained in:
commit
a57f0ef9a0
10 changed files with 34 additions and 12 deletions
12
CHANGES
12
CHANGES
|
@ -1,4 +1,16 @@
|
||||||
|
|
||||||
|
2.2-167 | 2014-02-12 20:17:39 -0800
|
||||||
|
|
||||||
|
* Increase timeouts of some unit tests. (Jon Siwek)
|
||||||
|
|
||||||
|
* Fix memory leak in modbus analyzer. Would happen if there's a
|
||||||
|
'modbus_read_fifo_queue_response' event handler. (Jon Siwek)
|
||||||
|
|
||||||
|
* Add channel_id TLS extension number. This number is not IANA
|
||||||
|
defined, but we see it being actively used. (Bernhard Amann)
|
||||||
|
|
||||||
|
* Test baseline updates for DNS change. (Robin Sommer)
|
||||||
|
|
||||||
2.2-158 | 2014-02-09 23:45:39 -0500
|
2.2-158 | 2014-02-09 23:45:39 -0500
|
||||||
|
|
||||||
* Change dns.log to include only standard DNS queries. (Jon Siwek)
|
* Change dns.log to include only standard DNS queries. (Jon Siwek)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.2-158
|
2.2-167
|
||||||
|
|
|
@ -86,6 +86,7 @@ export {
|
||||||
[13172] = "next_protocol_negotiation",
|
[13172] = "next_protocol_negotiation",
|
||||||
[13175] = "origin_bound_certificates",
|
[13175] = "origin_bound_certificates",
|
||||||
[13180] = "encrypted_client_certificates",
|
[13180] = "encrypted_client_certificates",
|
||||||
|
[30031] = "channel_id",
|
||||||
[65281] = "renegotiation_info"
|
[65281] = "renegotiation_info"
|
||||||
} &default=function(i: count):string { return fmt("unknown-%d", i); };
|
} &default=function(i: count):string { return fmt("unknown-%d", i); };
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
%header{
|
%header{
|
||||||
VectorVal* bytestring_to_coils(bytestring coils, uint quantity);
|
VectorVal* bytestring_to_coils(bytestring coils, uint quantity);
|
||||||
RecordVal* HeaderToBro(ModbusTCP_TransportHeader *header);
|
RecordVal* HeaderToBro(ModbusTCP_TransportHeader *header);
|
||||||
|
VectorVal* create_vector_of_count();
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%code{
|
%code{
|
||||||
|
@ -30,6 +31,14 @@
|
||||||
return modbus_header;
|
return modbus_header;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VectorVal* create_vector_of_count()
|
||||||
|
{
|
||||||
|
VectorType* vt = new VectorType(base_type(TYPE_COUNT));
|
||||||
|
VectorVal* vv = new VectorVal(vt);
|
||||||
|
Unref(vt);
|
||||||
|
return vv;
|
||||||
|
}
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
refine flow ModbusTCP_Flow += {
|
refine flow ModbusTCP_Flow += {
|
||||||
|
@ -367,7 +376,7 @@ refine flow ModbusTCP_Flow += {
|
||||||
if ( ::modbus_read_file_record_request )
|
if ( ::modbus_read_file_record_request )
|
||||||
{
|
{
|
||||||
//TODO: this need to be a vector of some Reference Request record type
|
//TODO: this need to be a vector of some Reference Request record type
|
||||||
//VectorVal *t = new VectorVal(new VectorType(base_type(TYPE_COUNT)));
|
//VectorVal *t = create_vector_of_count();
|
||||||
//for ( unsigned int i = 0; i < (${message.references}->size()); ++i )
|
//for ( unsigned int i = 0; i < (${message.references}->size()); ++i )
|
||||||
// {
|
// {
|
||||||
// Val* r = new Val((${message.references[i].ref_type}), TYPE_COUNT);
|
// Val* r = new Val((${message.references[i].ref_type}), TYPE_COUNT);
|
||||||
|
@ -393,7 +402,7 @@ refine flow ModbusTCP_Flow += {
|
||||||
%{
|
%{
|
||||||
if ( ::modbus_read_file_record_response )
|
if ( ::modbus_read_file_record_response )
|
||||||
{
|
{
|
||||||
//VectorVal *t = new VectorVal(new VectorType(base_type(TYPE_COUNT)));
|
//VectorVal *t = create_vector_of_count();
|
||||||
//for ( unsigned int i = 0; i < ${message.references}->size(); ++i )
|
//for ( unsigned int i = 0; i < ${message.references}->size(); ++i )
|
||||||
// {
|
// {
|
||||||
// //TODO: work the reference type in here somewhere
|
// //TODO: work the reference type in here somewhere
|
||||||
|
@ -414,7 +423,7 @@ refine flow ModbusTCP_Flow += {
|
||||||
%{
|
%{
|
||||||
if ( ::modbus_write_file_record_request )
|
if ( ::modbus_write_file_record_request )
|
||||||
{
|
{
|
||||||
//VectorVal* t = new VectorVal(new VectorType(base_type(TYPE_COUNT)));
|
//VectorVal* t = create_vector_of_count();
|
||||||
//for ( unsigned int i = 0; i < (${message.references}->size()); ++i )
|
//for ( unsigned int i = 0; i < (${message.references}->size()); ++i )
|
||||||
// {
|
// {
|
||||||
// Val* r = new Val((${message.references[i].ref_type}), TYPE_COUNT);
|
// Val* r = new Val((${message.references[i].ref_type}), TYPE_COUNT);
|
||||||
|
@ -447,7 +456,7 @@ refine flow ModbusTCP_Flow += {
|
||||||
%{
|
%{
|
||||||
if ( ::modbus_write_file_record_response )
|
if ( ::modbus_write_file_record_response )
|
||||||
{
|
{
|
||||||
//VectorVal* t = new VectorVal(new VectorType(base_type(TYPE_COUNT)));
|
//VectorVal* t = create_vector_of_count();
|
||||||
//for ( unsigned int i = 0; i < (${messages.references}->size()); ++i )
|
//for ( unsigned int i = 0; i < (${messages.references}->size()); ++i )
|
||||||
// {
|
// {
|
||||||
// Val* r = new Val((${message.references[i].ref_type}), TYPE_COUNT);
|
// Val* r = new Val((${message.references[i].ref_type}), TYPE_COUNT);
|
||||||
|
@ -589,7 +598,7 @@ refine flow ModbusTCP_Flow += {
|
||||||
|
|
||||||
if ( ::modbus_read_fifo_queue_response )
|
if ( ::modbus_read_fifo_queue_response )
|
||||||
{
|
{
|
||||||
VectorVal* t = new VectorVal(new VectorType(base_type(TYPE_COUNT)));
|
VectorVal* t = create_vector_of_count();
|
||||||
for ( unsigned int i = 0; i < (${message.register_data})->size(); ++i )
|
for ( unsigned int i = 0; i < (${message.register_data})->size(); ++i )
|
||||||
{
|
{
|
||||||
Val* r = new Val(${message.register_data[i]}, TYPE_COUNT);
|
Val* r = new Val(${message.register_data[i]}, TYPE_COUNT);
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# @TEST-EXEC: sleep 1
|
# @TEST-EXEC: sleep 1
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 bro -m %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 bro -m %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 bro -m %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 bro -m %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 15
|
# @TEST-EXEC: btest-bg-wait 25
|
||||||
|
|
||||||
@TEST-START-FILE cluster-layout.bro
|
@TEST-START-FILE cluster-layout.bro
|
||||||
redef Cluster::nodes = {
|
redef Cluster::nodes = {
|
||||||
|
|
|
@ -8,4 +8,4 @@
|
||||||
#
|
#
|
||||||
# @TEST-REQUIRES: bro --help 2>&1 | grep -q mem-leaks
|
# @TEST-REQUIRES: bro --help 2>&1 | grep -q mem-leaks
|
||||||
# @TEST-EXEC: HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local btest-bg-run bro bro -m -r $TRACES/wikipedia.trace Log::default_writer=Log::WRITER_DATASERIES
|
# @TEST-EXEC: HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local btest-bg-run bro bro -m -r $TRACES/wikipedia.trace Log::default_writer=Log::WRITER_DATASERIES
|
||||||
# @TEST-EXEC: btest-bg-wait 15
|
# @TEST-EXEC: btest-bg-wait 25
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# @TEST-GROUP: leaks
|
# @TEST-GROUP: leaks
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local btest-bg-run bro bro -m -r $TRACES/http/get.trace $SCRIPTS/file-analysis-test.bro %INPUT
|
# @TEST-EXEC: HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local btest-bg-run bro bro -m -r $TRACES/http/get.trace $SCRIPTS/file-analysis-test.bro %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 15
|
# @TEST-EXEC: btest-bg-wait 25
|
||||||
|
|
||||||
redef test_file_analysis_source = "HTTP";
|
redef test_file_analysis_source = "HTTP";
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
# @TEST-EXEC: sleep 2
|
# @TEST-EXEC: sleep 2
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 bro runnumber=1 %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 bro runnumber=1 %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 bro runnumber=2 %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 bro runnumber=2 %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 10
|
# @TEST-EXEC: btest-bg-wait 25
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
# @TEST-EXEC: btest-diff worker-1/.stdout
|
# @TEST-EXEC: btest-diff worker-1/.stdout
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# @TEST-EXEC: cp input4.log input.log
|
# @TEST-EXEC: cp input4.log input.log
|
||||||
# @TEST-EXEC: sleep 5
|
# @TEST-EXEC: sleep 5
|
||||||
# @TEST-EXEC: cp input5.log input.log
|
# @TEST-EXEC: cp input5.log input.log
|
||||||
# @TEST-EXEC: btest-bg-wait 15
|
# @TEST-EXEC: btest-bg-wait 30
|
||||||
|
|
||||||
@TEST-START-FILE input1.log
|
@TEST-START-FILE input1.log
|
||||||
#separator \x09
|
#separator \x09
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
# @TEST-REQUIRES: bro --help 2>&1 | grep -q mem-leaks
|
# @TEST-REQUIRES: bro --help 2>&1 | grep -q mem-leaks
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local btest-bg-run bro bro -m -r $TRACES/wikipedia.trace test-all-policy
|
# @TEST-EXEC: HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local btest-bg-run bro bro -m -r $TRACES/wikipedia.trace test-all-policy
|
||||||
# @TEST-EXEC: btest-bg-wait 15
|
# @TEST-EXEC: btest-bg-wait 25
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue