Crate iasc

Source
Expand description

§Ip address And Subnet mask Converter

This CLI tool can convert some Network’s address to another address.

§Usage

iasc --conversion-type prefix-to-subnet --prefix-length 24
# Output
255.255.255.0
iasc --conversion-type subnet-to-prefix --subnet-mask "255.255.255.0"
# Output
24

Structs§

Args
PrefixLength

Enums§

ConversionType
This enum is used whether the user wants to convert subnet mask to prefix length or prefix length to subnet mask.

Functions§

prefix_to_subnet
Calculate the subnet mask from the given prefix length.
subnet_to_prefix
Calculate the prefix length from the given subnet mask.

Type Aliases§

SubnetMask