parse_ipv4_mask()
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)
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre