Update btest baselines for analyzer history

This commit is contained in:
Jan Grashoefer 2024-08-12 12:02:31 +02:00
parent 29bc84e1d6
commit f18c28cfe5
4 changed files with 15 additions and 12 deletions

View file

@ -1,2 +1,2 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
ETHERNET, 35020, 02070400222d81db1004
ETHERNET, 35020, 02070400222d81db1004, [ETHERNET]

View file

@ -5,9 +5,9 @@
#unset_field -
#path unknown_protocols
#open XXXX-XX-XX-XX-XX-XX
#fields ts analyzer protocol_id first_bytes
#types time string string string
XXXXXXXXXX.XXXXXX IP 0xfd 1b794b175fac06aba658
XXXXXXXXXX.XXXXXX IP 0xfd 9d6c1f9e20274bb66385
XXXXXXXXXX.XXXXXX IP 0xfd 06ffb64ded001f65f818
#fields ts analyzer protocol_id first_bytes analyzer_history
#types time string string string vector[string]
XXXXXXXXXX.XXXXXX IP 0xfd 1b794b175fac06aba658 ETHERNET,VNTAG,VLAN,IP
XXXXXXXXXX.XXXXXX IP 0xfd 9d6c1f9e20274bb66385 ETHERNET,VNTAG,VLAN,IP
XXXXXXXXXX.XXXXXX IP 0xfd 06ffb64ded001f65f818 ETHERNET,VNTAG,VLAN,IP
#close XXXX-XX-XX-XX-XX-XX

View file

@ -5,7 +5,7 @@
#unset_field -
#path unknown_protocols
#open XXXX-XX-XX-XX-XX-XX
#fields ts analyzer protocol_id first_bytes
#types time string string string
XXXXXXXXXX.XXXXXX ETHERNET 0x88b5 4920616d20656e636170
#fields ts analyzer protocol_id first_bytes analyzer_history
#types time string string string vector[string]
XXXXXXXXXX.XXXXXX ETHERNET 0x88b5 4920616d20656e636170 ETHERNET
#close XXXX-XX-XX-XX-XX-XX

View file

@ -1,6 +1,9 @@
# @TEST-EXEC: zeek -b -r $TRACES/lldp.pcap %INPUT >out
# @TEST-EXEC: btest-diff out
event unknown_protocol(analyzer_name: string, protocol: count, first_bytes: string)
{ print analyzer_name, protocol, bytestring_to_hexstr(first_bytes); }
event unknown_protocol(analyzer_name: string, protocol: count, first_bytes: string,
analyzer_history: string_vec)
{
print analyzer_name, protocol, bytestring_to_hexstr(first_bytes),
analyzer_history;
}