Editar

Partilhar via


parse_ipv4_mask()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Converts the input string of IPv4 and netmask to a signed, 64-bit wide, long number representation in big-endian order.

Syntax

parse_ipv4_mask(ip , prefix)

Learn more about syntax conventions.

Parameters

Name Type Required Description
ip string ✔️ The IPv4 address to convert to a long number.
prefix int ✔️ An integer from 0 to 32 representing the number of most-significant bits that are taken into account.

Returns

If conversion is successful, the result is a long number. If conversion isn't successful, the result is null.

Example

print parse_ipv4_mask("127.0.0.1", 24)