mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00

Also fix IPAddr::Mask/ReverseMask not allowing argument of 0. And clarified return value of to_addr bif when the input string does not parse into a valid IP address.
9 lines
370 B
Text
9 lines
370 B
Text
to_addr(0.0.0.0) = 0.0.0.0 (SUCCESS)
|
|
to_addr(1.2.3.4) = 1.2.3.4 (SUCCESS)
|
|
to_addr(01.02.03.04) = 1.2.3.4 (SUCCESS)
|
|
to_addr(001.002.003.004) = 1.2.3.4 (SUCCESS)
|
|
to_addr(10.20.30.40) = 10.20.30.40 (SUCCESS)
|
|
to_addr(100.200.30.40) = 100.200.30.40 (SUCCESS)
|
|
to_addr(10.0.0.0) = 10.0.0.0 (SUCCESS)
|
|
to_addr(10.00.00.000) = 10.0.0.0 (SUCCESS)
|
|
to_addr(not an IP) = :: (SUCCESS)
|