Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Ipv4Cidr

Hierarchy

  • Ipv4Cidr

Index

Constructors

  • new Ipv4Cidr(cidrRange: string): Ipv4Cidr
  • Parameters

    • cidrRange: string

    Returns Ipv4Cidr

Properties

_ipAddress: Ipv4Address
_maskSize: number

Accessors

  • get addressLength(): number
  • Returns number

  • get allocatableIpCount(): number
  • Number of IP addresses within the cidr range

    Returns number

  • The first IPv4 address that is usable within the given cidr range

    Returns Ipv4Address

  • The last IPv4 address that is usable within the given cidr range

    Returns Ipv4Address

  • get maskSize(): number
  • The size of the cidr netmask (the number after the slash in cidr notation)

    Returns number

  • The actual IPv4 netmask address

    Returns Ipv4Address

Methods

  • Parameters

    Returns boolean

    if the given IPv4 address is within the cidr range

  • Parameters

    • Optional ofSize: number

    Returns Ipv4Cidr

    the next consecutive cidr block

  • Returns Ipv4Cidr

    the previous cidr block

  • toString(): string
  • Returns string

    string representation of the cidr range

Generated using TypeDoc