mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Add tests for raw_bytes_to_v6_addr
This commit is contained in:
parent
41f4f52622
commit
45ab85c09e
2 changed files with 14 additions and 0 deletions
4
testing/btest/Baseline/bifs.raw_bytes_to_v6_addr/out
Normal file
4
testing/btest/Baseline/bifs.raw_bytes_to_v6_addr/out
Normal file
|
@ -0,0 +1,4 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
4142:4344:4546:4748:494b:4c4d:4e4f:5051
|
||||
2852:8180:ff7f:0:2700::
|
||||
dada:beef::4e5e:cff:fe6a:8671
|
10
testing/btest/bifs/raw_bytes_to_v6_addr.zeek
Normal file
10
testing/btest/bifs/raw_bytes_to_v6_addr.zeek
Normal file
|
@ -0,0 +1,10 @@
|
|||
#
|
||||
# @TEST-EXEC: zeek -b %INPUT >out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
print raw_bytes_to_v6_addr("ABCDEFGHIKLMNOPQ");
|
||||
print raw_bytes_to_v6_addr("ABCDEFGHIKLMNOP");
|
||||
print raw_bytes_to_v6_addr("\xda\xda\xbe\xef\x00\x00\x00\x00N^\x0c\xff\xfej\x86q");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue