mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +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.
11 lines
248 B
Text
11 lines
248 B
Text
# @TEST-EXEC: bro %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
global v: index_vec;
|
|
|
|
v = addr_to_counts([2001:0db8:85a3:0000:0000:8a2e:0370:7334]);
|
|
print v;
|
|
print counts_to_addr(v);
|
|
v = addr_to_counts(1.2.3.4);
|
|
print v;
|
|
print counts_to_addr(v);
|