Function

NM-1.0NMutils_ip4_get_default_prefix

  • When the Internet was originally set up, various ranges of IP addresses were segmented into three network classes: A, B, and C. This function will return a prefix that is associated with the IP address specified defining where it falls in the predefined classes.

    Parameters

    • ip: number

      an IPv4 address (in network byte order)

    Returns number

    the default class prefix for the given IP