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:
Christian Kreibich 2025-03-18 17:45:24 -07:00
parent cb5e3d0054
commit 7ba9609992
2 changed files with 26 additions and 0 deletions

View file

@ -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