3. Address

Address manipulation routines

3.1. Summary of Module Globals

List of Global Functions

  • Check - Check syntax of a network address (IP address or hostname)

  • Check4 - Check syntax of a network address (ip4 or name)

  • Check6 - Check syntax of a network address (ip6 or name)

  • CheckMAC - Check syntax of MAC address

  • Valid4 - Return a description of a valid address (ip4 or name)

  • ValidMAC - Describe a valid MAC address

List of Global Variables

    3.2. Global Functions

    3.2.1. Check

    Check syntax of a network address (IP address or hostname)

    Function parameters

    • string address

    Return value

    • boolean - true if correct

    3.2.2. Check4

    Check syntax of a network address (ip4 or name)

    Function parameters

    • string address

    Return value

    • boolean - true if correct

    3.2.3. Check6

    Check syntax of a network address (ip6 or name)

    Function parameters

    • string address

    Return value

    • boolean - true if correct

    3.2.4. CheckMAC

    Check syntax of MAC address

    Function parameters

    • string address

    Return value

    • boolean - true if correct

    3.2.5. Valid4

    Return a description of a valid address (ip4 or name)

    Return value

    • string - description

    3.2.6. ValidMAC

    Describe a valid MAC address

    Return value

    • string - description of a valid MAC address

    3.3. Global Variables

    3.4. Module Requirements

    3.4.1. Module Imports

    • Hostname
    • IP

    3.4.2. Module Includes