mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Add btests for has_valid_octets() and normalize_mac()
These functions reside in base/utils/addrs.zeek and were not tested. We don't use has_valid_octets() anywhere right now, normalize_mac() is used in the RADIUS analyzer, and addr_to_uri() is used in the signatures/dpd.zeek tests.
This commit is contained in:
parent
cb5e3d0054
commit
7ba9609992
2 changed files with 26 additions and 0 deletions
|
@ -61,3 +61,15 @@ F
|
|||
[1.1.1.1]
|
||||
[1.1.1.1]
|
||||
[6:1:2::3:4:5:6]
|
||||
============ test has_valid_octets()
|
||||
T
|
||||
T
|
||||
T
|
||||
F
|
||||
F
|
||||
============ test normalize_mac()
|
||||
aa:bb:cc:dd:ee:ff
|
||||
aa:bb:cc:dd:ee:ff
|
||||
aa:bb:cc:dd:ee:ff
|
||||
00:11:aa:bb:cc:dd:ee:ff
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue