mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00

This is to avoid ambiguity between compressed hex notation and module namespacing, both which use "::". E.g.: "aaaa::bbbb" could be an identifier or an IPv6 address, but "[aaaa::bbbb]" is now clearly the address. Also added IPv6 mixed notation to allow an IPv4 dotted-decimal address to be specified in the lower 32-bits.
7 lines
164 B
Text
7 lines
164 B
Text
# @TEST-EXEC: bro %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
print is_v4_addr(1.2.3.4);
|
|
print is_v4_addr([::1]);
|
|
print is_v6_addr(1.2.3.4);
|
|
print is_v6_addr([::1]);
|