Function

NM-1.0NMutils_hwaddr_len

  • Returns the length in octets of a hardware address of type type.

    Before 1.28, it was an error to call this function with any value other than ARPHRD_ETHER or ARPHRD_INFINIBAND.

    Parameters

    • type: number

      the type of address; either ARPHRD_ETHER or ARPHRD_INFINIBAND

    Returns number

    the length or zero if the type is unrecognized.