Netmask
Description
IPv4 CIDR address block.
Constructor
new Netmask(cidr)
Creates an instance of Netmask.
Properties
baseBase address in dot-decimal notation.
Subnet mask width.
Broadcast address in dot-decimal notation.
First address in the address block.
Host mask in dot-decimal notation.
The IP address part of CIDR notation.
Last address in the address block.
Subnet mask in dot-decimal notation.
Size of the address block.
The Internet Protocol version, 4 or 6.
Methods
contains(ip)
Checks if an address belongs to the block.
Extracts the number components of the IP address.
next()
Allocates an address from the block.