Hierarchy

  • IPMask

Constructors

Properties

Accessors

Methods

Constructors

Properties

mask: Uint8Array

Accessors

Methods

  • returns the number of leading ones and total bits in the mask.

    Remarks

    If the mask is not in the canonical form--ones followed by zeros--then returns [0,0]

    Returns

    [ones:number, bits:number]

    Returns [number, number]

  • returns an IPMask consisting of 'ones' 1 bits followed by 0s up to a total length of 'bits' bits.

    Parameters

    • ones: number
    • bits: number

    Returns undefined | IPMask

  • returns the IP mask (in 4-byte form) of the IPv4 mask a.b.c.d.

    Parameters

    • a: number
    • b: number
    • c: number
    • d: number

    Returns IPMask

Generated using TypeDoc