|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.13.1.2
|
Macros | |
| #define | OPEN_NTP_BUFFER_SIZE 256 |
| #define | OPEN_NTP_DATE_STRING_SIZE 21 |
| #define | OPEN_NTP_MAX_ASSOC_ID 65535 |
| NTP association ID maximum value. | |
| #define | OPEN_NTP_MAX_KEY_LENGTH 129 |
| NTP maximum key length. | |
| #define | OPEN_NTP_MAX_KEY_NUM 65535 |
| NTP maximum key number. | |
| #define | OPEN_NTP_MAX_SERVERS 8 |
| #define | OPEN_NTP_MIN_ASSOC_ID 0 |
| NTP association ID minimum value. | |
| #define | OPEN_NTP_MIN_KEY_LENGTH 1 |
| NTP minimum key length. | |
| #define | OPEN_NTP_MIN_KEY_NUM 1 |
| NTP minimum key number. | |
| #define | OPEN_SECS_PER_MIN 60 |
| #define | OPEN_VRF_MAX_NAME 15 |
Functions | |
| open_error_t | openapiActiveNtpServerAddressTypeGet (openapiClientHandle_t *client_handle, OPEN_NTP_ADDRESS_TYPE_t *type) |
| Get the active NTP server address type from which last packet is received. More... | |
| open_error_t | openapiActiveNtpServerIpAddressGet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer) |
| Get the active NTP server from which last packet is received. More... | |
| open_error_t | openapiActiveNtpServerModeGet (openapiClientHandle_t *client_handle, OPEN_NTP_SERVER_MODE_t *serverMode) |
| Get the mode of the NTP server from which last packet is received. More... | |
| open_error_t | openapiActiveNtpServerReferenceIdGet (openapiClientHandle_t *client_handle, open_buffdesc *reference) |
| Get the NTP server reference identifier from which last packet is received. More... | |
| open_error_t | openapiActiveNtpServerStratumGet (openapiClientHandle_t *client_handle, uint32_t *stratum) |
| Get the stratum of the NTP server from which last packet is received. More... | |
| open_error_t | openapiNtpAssocAddressGet (openapiClientHandle_t *client_handle, uint32_t assocId, open_buffdesc *assocAddr) |
| Get the address (IPv4 or IPv6) of the association. More... | |
| open_error_t | openapiNtpAssocAddressTypeGet (openapiClientHandle_t *client_handle, uint32_t assocId, OPEN_NTP_ADDRESS_TYPE_t *assocAddrType) |
| Get the type of address of the association. More... | |
| open_error_t | openapiNtpAssocIdGet (openapiClientHandle_t *client_handle, uint32_t assocID) |
| Check whether the given association ID exists or not. More... | |
| open_error_t | openapiNtpAssocIdNextGet (openapiClientHandle_t *client_handle, uint32_t *nextAssocID) |
| Get the next association ID. More... | |
| open_error_t | openapiNtpAssocNameGet (openapiClientHandle_t *client_handle, uint32_t assocId, open_buffdesc *assocName) |
| Get the hostname or other descriptive name for the association. More... | |
| open_error_t | openapiNtpAssocOffsetGet (openapiClientHandle_t *client_handle, uint32_t assocId, open_buffdesc *assocOffset) |
| Get the time offset of the association. More... | |
| open_error_t | openapiNtpAssocRefIdGet (openapiClientHandle_t *client_handle, uint32_t assocId, open_buffdesc *assocRefId) |
| Get the reference clock driver ID. More... | |
| open_error_t | openapiNtpAssocStatInPktsGet (openapiClientHandle_t *client_handle, uint32_t assocId, uint32_t *assocInPkts) |
| Get the total number of NTP messages delivered to the NTP entity from this association. More... | |
| open_error_t | openapiNtpAssocStatOutPktsGet (openapiClientHandle_t *client_handle, uint32_t assocId, uint32_t *assocOutPkts) |
| Get the total number of NTP messages delivered to the transport service by this NTP entity for this association. More... | |
| open_error_t | openapiNtpAssocStatProtocolErrorGet (openapiClientHandle_t *client_handle, uint32_t assocId, uint32_t *assocProtErrPkts) |
| Get the total number of NTP messages that were delivered to this NTP entity from this association and this entity was not able to process due to an NTP protocol error. More... | |
| open_error_t | openapiNtpAssocStatusDelayGet (openapiClientHandle_t *client_handle, uint32_t assocId, open_buffdesc *assocDelay) |
| Get the association network delay. More... | |
| open_error_t | openapiNtpAssocStatusDispersionGet (openapiClientHandle_t *client_handle, uint32_t assocId, open_buffdesc *assocDispersion) |
| Get the root dispersion of the association. More... | |
| open_error_t | openapiNtpAssocStatusJitterGet (openapiClientHandle_t *client_handle, uint32_t assocId, open_buffdesc *assocJitter) |
| Get the association jitter. More... | |
| open_error_t | openapiNtpAssocStratumGet (openapiClientHandle_t *client_handle, uint32_t assocId, uint32_t *assocStratum) |
| Get the association stratum value. More... | |
| open_error_t | openapiNtpAuthenticationModeGet (openapiClientHandle_t *client_handle, OPEN_BOOL_t *mode) |
| Get the current authentication mode for this application. More... | |
| open_error_t | openapiNtpAuthenticationModeSet (openapiClientHandle_t *client_handle, OPEN_BOOL_t mode) |
| Set the current authentication mode for this application. More... | |
| open_error_t | openapiNtpAuthTableEntryFirstGet (openapiClientHandle_t *client_handle, uint32_t *keyNumber) |
| Get the first NTP auth table entry. More... | |
| open_error_t | openapiNtpAuthTableEntryGetNext (openapiClientHandle_t *client_handle, uint32_t *keyNum, uint32_t *nextKeyNum) |
| Get the next NTP auth table entry. More... | |
| open_error_t | openapiNtpAuthTableKeyAdd (openapiClientHandle_t *client_handle, uint32_t keyNumber, open_buffdesc *keyValue, OPEN_BOOL_t isEncrypted, OPEN_NTP_MSG_AUTH_ALG_t msgAuthAlg) |
| Add a new authentication table entry specified by key number. More... | |
| open_error_t | openapiNtpAuthTableKeyDelete (openapiClientHandle_t *client_handle, uint32_t keyNumber) |
| Delete an authentication table entry specified by key number. More... | |
| open_error_t | openapiNtpAuthTableKeyMsgAuthAlgGet (openapiClientHandle_t *client_handle, uint32_t keyNumber, OPEN_NTP_MSG_AUTH_ALG_t *msgAuthAlg) |
| Get the message authentication algorithm for the specified authentication key table entry index. More... | |
| open_error_t | openapiNtpAuthTableKeyMsgAuthAlgSet (openapiClientHandle_t *client_handle, uint32_t keyNumber, OPEN_NTP_MSG_AUTH_ALG_t msgAuthAlg) |
| Set the message authentication algorithm for the specified authentication key table entry index. More... | |
| open_error_t | openapiNtpAuthTableKeyTrustedGet (openapiClientHandle_t *client_handle, uint32_t keyNumber, OPEN_BOOL_t *trustedStatus) |
| Get a key as trusted or untrusted specified by the authenticate table entry index. More... | |
| open_error_t | openapiNtpAuthTableKeyTrustedSet (openapiClientHandle_t *client_handle, uint32_t keyNumber, OPEN_BOOL_t trustedStatus) |
| Set a key as trusted or untrusted specified by the authenticate table entry index. More... | |
| open_error_t | openapiNtpAuthTableKeyValueGet (openapiClientHandle_t *client_handle, uint32_t keyNumber, open_buffdesc *keyValue) |
| Get the key number of the authenticate table entry. More... | |
| open_error_t | openapiNtpAuthTableKeyValueSet (openapiClientHandle_t *client_handle, uint32_t keyNumber, open_buffdesc *keyValue, OPEN_BOOL_t isEncrypted) |
| Set the key value of the authenticate table entry. More... | |
| open_error_t | openapiNtpBroadcastClientModeGet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t *ntpMode) |
| Get the NTP broadcast client mode. More... | |
| open_error_t | openapiNtpBroadcastClientModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t mode) |
| Set the ntp broadcast client mode of the NTP application. More... | |
| open_error_t | openapiNtpBroadcastDelayGet (openapiClientHandle_t *client_handle, uint32_t *delay) |
| Get the Broadcast delay for the NTP application. More... | |
| open_error_t | openapiNtpBroadcastDelaySet (openapiClientHandle_t *client_handle, uint32_t delay) |
| Set the Broadcast delay for the NTP application. More... | |
| open_error_t | openapiNtpEntSoftwareNameGet (openapiClientHandle_t *client_handle, open_buffdesc *swName) |
| Get the software name of the running NTP version. More... | |
| open_error_t | openapiNtpEntSoftwareVersionGet (openapiClientHandle_t *client_handle, open_buffdesc *swVersion) |
| Get the software version of the installed NTP implementation. More... | |
| open_error_t | openapiNtpEntStatusBadVersionGet (openapiClientHandle_t *client_handle, uint32_t *badVerPkts) |
| Get the total number of NTP messages that were delivered to this NTP entity and were for an unsupported NTP version. More... | |
| open_error_t | openapiNtpEntStatusInPktsGet (openapiClientHandle_t *client_handle, uint32_t *inPkts) |
| Get the total number of NTP messages delivered to the NTP entity. More... | |
| open_error_t | openapiNtpEntStatusOutPktsGet (openapiClientHandle_t *client_handle, uint32_t *outPkts) |
| Get the total number of NTP messages delivered from the NTP entity. More... | |
| open_error_t | openapiNtpEntStatusProtocolErrorGet (openapiClientHandle_t *client_handle, uint32_t *pErrPkts) |
| Get the total number of NTP messages that were delivered to this NTP entity and this entity was not able to process due to an NTP protocol error. More... | |
| open_error_t | openapiNtpEntSystemTypeGet (openapiClientHandle_t *client_handle, open_buffdesc *systemType) |
| Get the general hardware/os platform information. More... | |
| open_error_t | openapiNtpModeGet (openapiClientHandle_t *client_handle, OPEN_NTP_MODE_t *ntpMode) |
| Get the NTP mode. More... | |
| open_error_t | openapiNtpModeSet (openapiClientHandle_t *client_handle, OPEN_NTP_MODE_t mode) |
| Set the NTP mode. More... | |
| open_error_t | openapiNtpServerAdd (openapiClientHandle_t *client_handle, open_buffdesc *ipAddr) |
| Add an NTP server. More... | |
| open_error_t | openapiNtpServerAddressTypeGet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, OPEN_NTP_ADDRESS_TYPE_t *ntpServerAddrType) |
| Get the NTP server address type. More... | |
| open_error_t | openapiNtpServerCurrentEntriesGet (openapiClientHandle_t *client_handle, uint32_t *currEntries) |
| Get number of NTP servers configured. More... | |
| open_error_t | openapiNtpServerDelete (openapiClientHandle_t *client_handle, open_buffdesc *ipAddr) |
| Delete an NTP server. More... | |
| open_error_t | openapiNtpServerFirstGet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer) |
| Get the first NTP server. More... | |
| open_error_t | openapiNtpServerMaxAddrLenGet (openapiClientHandle_t *client_handle, uint32_t *ntpServerAddrLen) |
| Get the maximum length of NTP server address. More... | |
| open_error_t | openapiNtpServerNextGet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, open_buffdesc *nextNtpServer) |
| Get the next NTP server. More... | |
| open_error_t | openapiNtpServerReferenceStringLengthGet (openapiClientHandle_t *client_handle, uint32_t *refStrLen) |
| Get the maximum length of the NTP reference ID string. More... | |
| open_error_t | openapiNtpServersMaxSupportedGet (openapiClientHandle_t *client_handle, uint32_t *maxNtpServers) |
| Get the maximum number of NTP servers supported. More... | |
| open_error_t | openapiNtpServerTableAuthKeyGet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, uint32_t *keyIndex) |
| Get the authentication key for an NTP server table entry. More... | |
| open_error_t | openapiNtpServerTableAuthKeySet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, uint32_t keyIndex) |
| Set the authentication key for the specified NTP server table entry. More... | |
| open_error_t | openapiNtpServerTableBurstGet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, OPEN_BOOL_t *burst) |
| Get the NTP burst status of the server table entry. More... | |
| open_error_t | openapiNtpServerTableBurstSet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, OPEN_BOOL_t burst) |
| Set the NTP burst status of the server table entry. More... | |
| open_error_t | openapiNtpServerTableIBurstGet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, OPEN_BOOL_t *iburst) |
| Get the NTP iburst status of the server table entry. More... | |
| open_error_t | openapiNtpServerTableIBurstSet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, OPEN_BOOL_t iburst) |
| Set the NTP iburst status of the server table entry. More... | |
| open_error_t | openapiNtpServerTableMaxPollGet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, uint16_t *interval) |
| Get the server maximum poll interval in seconds as a power of two. More... | |
| open_error_t | openapiNtpServerTableMaxPollSet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, uint16_t interval) |
| Set the server maximum poll interval in seconds as a power of two. More... | |
| open_error_t | openapiNtpServerTableMinPollGet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, uint16_t *interval) |
| Get the server minimum poll interval in seconds as a power of two. More... | |
| open_error_t | openapiNtpServerTableMinPollSet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, uint16_t interval) |
| Set the server minimum poll interval in seconds as a power of two. More... | |
| open_error_t | openapiNtpServerTablePreferGet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, OPEN_BOOL_t *prefer) |
| Get the NTP prefer status of the server table entry. More... | |
| open_error_t | openapiNtpServerTablePreferSet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, OPEN_BOOL_t prefer) |
| Set the NTP prefer status of the server table entry. More... | |
| open_error_t | openapiNtpServerTableVersionGet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, uint16_t *version) |
| Get the NTP version of the server table entry. More... | |
| open_error_t | openapiNtpServerTableVersionSet (openapiClientHandle_t *client_handle, open_buffdesc *ntpServer, uint16_t version) |
| Set the NTP version of the server table entry. More... | |
| open_error_t | openapiNtpSourceInterfaceGet (openapiClientHandle_t *client_handle, uint32_t *intIfNum) |
| Get the Source Interface of the NTP application. More... | |
| open_error_t | openapiNtpSourceInterfaceSet (openapiClientHandle_t *client_handle, uint32_t intIfNum) |
| Set the Source Interface of the NTP application. More... | |
| open_error_t | openapiNtpSupportedModeGet (openapiClientHandle_t *client_handle, OPEN_NTP_SUPPORTED_MODE_t *ntpSupportedMode) |
| Get the NTP supported mode. More... | |
| open_error_t | openapiNtpVersionGet (openapiClientHandle_t *client_handle, uint32_t *version) |
| Get the highest NTP version the application supports. More... | |
| open_error_t | openapiNtpVrfNameGet (openapiClientHandle_t *client_handle, open_buffdesc *vrfName) |
| Get the VRF name of the NTP server. More... | |
| open_error_t | openapiNtpVrfNameSet (openapiClientHandle_t *client_handle, open_buffdesc *vrfName) |
| Set the VRF name of the NTP server. More... | |
OpEN uses this enumeration to define NTP address types.
| Enumerator | |
|---|---|
| OPEN_NTP_ADDRESS_UNKNOWN |
Address type unknown. |
| OPEN_NTP_ADDRESS_IPV4 |
Address type IPv4. |
| OPEN_NTP_ADDRESS_IPV6 |
Address type IPv6. |
| OPEN_NTP_ADDRESS_DNS |
Address type DNS. |
Definition at line 75 of file openapi_ntp.h.
| enum OPEN_NTP_MODE_t |
OpEN uses this enumeration to define NTP client modes.
| Enumerator | |
|---|---|
| OPEN_NTP_DISABLED |
NTP client mode disabled. |
| OPEN_NTP_UNICAST |
NTP client unicast mode. |
| OPEN_NTP_BROADCAST |
NTP client broadcast mode. |
Definition at line 57 of file openapi_ntp.h.
Definition at line 109 of file openapi_ntp.h.
Definition at line 96 of file openapi_ntp.h.
OpEN uses this enumeration to define NTP server modes.
Definition at line 84 of file openapi_ntp.h.
OpEN uses this enumeration to define NTP supported client modes.
Definition at line 66 of file openapi_ntp.h.
| open_error_t openapiActiveNtpServerAddressTypeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_NTP_ADDRESS_TYPE_t * | type | ||
| ) |
Get the active NTP server address type from which last packet is received.
| [in] | client_handle | Client handle from registration API |
| [out] | type | NTP server address type |
| OPEN_E_NONE | if active NTP server address type is returned. |
| OPEN_E_FAIL | if failed to get active NTP server type. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiActiveNtpServerIpAddressGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer | ||
| ) |
Get the active NTP server from which last packet is received.
| [in] | client_handle | Client handle from registration API |
| [out] | ntpServer | Active NTP server |
| OPEN_E_NONE | if active NTP server address is returned. |
| OPEN_E_FAIL | if there are no active NTP servers . |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_INTERNAL | if internal error. |
OpEN API Version: 1.23
| open_error_t openapiActiveNtpServerModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_NTP_SERVER_MODE_t * | serverMode | ||
| ) |
Get the mode of the NTP server from which last packet is received.
| [in] | client_handle | Client handle from registration API |
| [out] | serverMode | NTP server mode |
| OPEN_E_NONE | if NTP server mode is returned. |
| OPEN_E_FAIL | if failed to get NTP server mode. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiActiveNtpServerReferenceIdGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | reference | ||
| ) |
Get the NTP server reference identifier from which last packet is received.
| [in] | client_handle | Client handle from registration API |
| [out] | reference | Reference Identifier of NTP server |
| OPEN_E_NONE | if reference of the NTP server is returned. |
| OPEN_E_FAIL | if failed to get reference of NTP server. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiActiveNtpServerStratumGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | stratum | ||
| ) |
Get the stratum of the NTP server from which last packet is received.
| [in] | client_handle | Client handle from registration API |
| [out] | stratum | Stratum of the NTP server |
| OPEN_E_NONE | if stratum of the NTP server is returned. |
| OPEN_E_FAIL | if failed to get stratum of NTP server. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpAssocAddressGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocId, | ||
| open_buffdesc * | assocAddr | ||
| ) |
Get the address (IPv4 or IPv6) of the association.
| [in] | client_handle | Client handle from registration API |
| [in] | assocId | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| [out] | assocAddr | association address. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocAddressTypeGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocId, | ||
| OPEN_NTP_ADDRESS_TYPE_t * | assocAddrType | ||
| ) |
Get the type of address of the association.
| [in] | client_handle | Client handle from registration API |
| [in] | assocId | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| [out] | assocAddrType | association address type. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocIdGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocID | ||
| ) |
Check whether the given association ID exists or not.
| [in] | client_handle | Client handle from registration API |
| [out] | assocID | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| OPEN_E_NONE | if association ID exists. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_EXISTS | if association ID does not exists. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocIdNextGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | nextAssocID | ||
| ) |
Get the next association ID.
| [in] | client_handle | Client handle from registration API |
| [out] | nextAssocID | next association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocNameGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocId, | ||
| open_buffdesc * | assocName | ||
| ) |
Get the hostname or other descriptive name for the association.
| [in] | client_handle | Client handle from registration API |
| [in] | assocId | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| [out] | assocName | association name. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocOffsetGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocId, | ||
| open_buffdesc * | assocOffset | ||
| ) |
Get the time offset of the association.
| [in] | client_handle | Client handle from registration API |
| [in] | assocId | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| [out] | assocOffset | association offset. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocRefIdGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocId, | ||
| open_buffdesc * | assocRefId | ||
| ) |
Get the reference clock driver ID.
| [in] | client_handle | Client handle from registration API |
| [in] | assocId | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| [out] | assocRefId | association reference ID. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocStatInPktsGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocId, | ||
| uint32_t * | assocInPkts | ||
| ) |
Get the total number of NTP messages delivered to the NTP entity from this association.
| [in] | client_handle | Client handle from registration API |
| [in] | assocId | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| [out] | assocInPkts | packets recevied. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocStatOutPktsGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocId, | ||
| uint32_t * | assocOutPkts | ||
| ) |
Get the total number of NTP messages delivered to the transport service by this NTP entity for this association.
| [in] | client_handle | Client handle from registration API |
| [in] | assocId | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| [out] | assocOutPkts | packets sent. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocStatProtocolErrorGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocId, | ||
| uint32_t * | assocProtErrPkts | ||
| ) |
Get the total number of NTP messages that were delivered to this NTP entity from this association and this entity was not able to process due to an NTP protocol error.
| [in] | client_handle | Client handle from registration API |
| [in] | assocId | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| [out] | assocProtErrPkts | protocol error packets. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocStatusDelayGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocId, | ||
| open_buffdesc * | assocDelay | ||
| ) |
Get the association network delay.
| [in] | client_handle | Client handle from registration API |
| [in] | assocId | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| [out] | assocDelay | association delay. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocStatusDispersionGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocId, | ||
| open_buffdesc * | assocDispersion | ||
| ) |
Get the root dispersion of the association.
| [in] | client_handle | Client handle from registration API |
| [in] | assocId | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| [out] | assocDispersion | association dispersion. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocStatusJitterGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocId, | ||
| open_buffdesc * | assocJitter | ||
| ) |
Get the association jitter.
| [in] | client_handle | Client handle from registration API |
| [in] | assocId | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| [out] | assocJitter | association jitter. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAssocStratumGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | assocId, | ||
| uint32_t * | assocStratum | ||
| ) |
Get the association stratum value.
| [in] | client_handle | Client handle from registration API |
| [in] | assocId | association ID. Minimum value OPEN_NTP_MIN_ASSOC_ID Maximum value OPEN_NTP_MAX_ASSOC_ID |
| [out] | assocStratum | association stratum. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | Invalid parameters. |
| OPEN_E_FAIL | Otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpAuthenticationModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_BOOL_t * | mode | ||
| ) |
Get the current authentication mode for this application.
| [in] | client_handle | Client handle from registration API |
| [out] | mode | OPEN_TRUE to enable, OPEN_FALSE to disable |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpAuthenticationModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_BOOL_t | mode | ||
| ) |
Set the current authentication mode for this application.
| [in] | client_handle | Client handle from registration API |
| [in] | mode | OPEN_TRUE to enable, OPEN_FALSE to disable |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_INTERNAL | if internal error. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpAuthTableEntryFirstGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | keyNumber | ||
| ) |
Get the first NTP auth table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | keyNumber | NTP key id, range OPEN_NTP_MIN_KEY_NUM - OPEN_NTP_MAX_KEY_NUM |
| OPEN_E_NONE | if first key entry is returned. |
| OPEN_E_FAIL | if key does not exist. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpAuthTableEntryGetNext | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | keyNum, | ||
| uint32_t * | nextKeyNum | ||
| ) |
Get the next NTP auth table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | keyNum | key number |
| [out] | nextKeyNum | Next key number |
| OPEN_E_NONE | if next NTP key num is returned. |
| OPEN_E_NOT_FOUND | if next NTP key num does not exist. |
| OPEN_E_FAIL | if previous NTP key num is invalid. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpAuthTableKeyAdd | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | keyNumber, | ||
| open_buffdesc * | keyValue, | ||
| OPEN_BOOL_t | isEncrypted, | ||
| OPEN_NTP_MSG_AUTH_ALG_t | msgAuthAlg | ||
| ) |
Add a new authentication table entry specified by key number.
| [in] | client_handle | Client handle from registration API |
| [in] | keyNumber | NTP key id, range OPEN_NTP_MIN_KEY_NUM - OPEN_NTP_MAX_KEY_NUM |
| [in] | keyValue | ASCII key string OPEN_NTP_MIN_KEY_LENGTH- OPEN__NTP_MAX_KEY_LENGTH |
| [in] | isEncrypted | whether the key is encrypted or not |
| [in] | msgAuthAlg | Message authentication algorithm |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_EXISTS | if the key is already configured. |
| OPEN_E_FULL | if no more space is available to add the keys. |
| OPEN_E_INTERNAL | if internal error. |
| OPEN_E_UNAVAIL | if message authentication algorithm is not supported. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpAuthTableKeyDelete | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | keyNumber | ||
| ) |
Delete an authentication table entry specified by key number.
| [in] | client_handle | Client handle from registration API |
| [in] | keyNumber | NTP key id, range OPEN_NTP_MIN_KEY_NUM - OPEN_NTP_MAX_KEY_NUM |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if key is not found. |
| OPEN_E_INTERNAL | if internal error. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpAuthTableKeyMsgAuthAlgGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | keyNumber, | ||
| OPEN_NTP_MSG_AUTH_ALG_t * | msgAuthAlg | ||
| ) |
Get the message authentication algorithm for the specified authentication key table entry index.
| [in] | client_handle | Client handle from registration API |
| [in] | keyNumber | NTP key id, range OPEN_NTP_MIN_KEY_NUM - OPEN_NTP_MAX_KEY_NUM |
| [out] | msgAuthAlg | message authentication algorithm |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if key is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpAuthTableKeyMsgAuthAlgSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | keyNumber, | ||
| OPEN_NTP_MSG_AUTH_ALG_t | msgAuthAlg | ||
| ) |
Set the message authentication algorithm for the specified authentication key table entry index.
| [in] | client_handle | Client handle from registration API |
| [in] | keyNumber | NTP key id, range OPEN_NTP_MIN_KEY_NUM - OPEN_NTP_MAX_KEY_NUM |
| [in] | msgAuthAlg | message authentication algorithm |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if key is not found. |
| OPEN_E_UNAVAIL | if message authentication algorithm is not supported. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpAuthTableKeyTrustedGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | keyNumber, | ||
| OPEN_BOOL_t * | trustedStatus | ||
| ) |
Get a key as trusted or untrusted specified by the authenticate table entry index.
| [in] | client_handle | Client handle from registration API |
| [in] | keyNumber | NTP key id, range OPEN_NTP_MIN_KEY_NUM - OPEN_NTP_MAX_KEY_NUM |
| [out] | trustedStatus | OPEN_TRUE or OPEN_FALSE |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if key is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpAuthTableKeyTrustedSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | keyNumber, | ||
| OPEN_BOOL_t | trustedStatus | ||
| ) |
Set a key as trusted or untrusted specified by the authenticate table entry index.
| [in] | client_handle | Client handle from registration API |
| [in] | keyNumber | NTP key id, range OPEN_NTP_MIN_KEY_NUM - OPEN_NTP_MAX_KEY_NUM |
| [in] | trustedStatus | OPEN_TRUE or OPEN_FALSE |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if key is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpAuthTableKeyValueGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | keyNumber, | ||
| open_buffdesc * | keyValue | ||
| ) |
Get the key number of the authenticate table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | keyNumber | NTP key id, range OPEN_NTP_MIN_KEY_NUM - OPEN_NTP_MAX_KEY_NUM |
| [out] | keyValue | ASCII key string OPEN_NTP_MIN_KEY_LENGTH- OPEN_NTP_MAX_KEY_LENGTH |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if key is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpAuthTableKeyValueSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | keyNumber, | ||
| open_buffdesc * | keyValue, | ||
| OPEN_BOOL_t | isEncrypted | ||
| ) |
Set the key value of the authenticate table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | keyNumber | NTP key id, range OPEN_NTP_MIN_KEY_NUM - OPEN_NTP_MAX_KEY_NUM |
| [in] | keyValue | ASCII key string OPEN_NTP_MIN_KEY_LENGTH- OPEN__NTP_MAX_KEY_LENGTH |
| [in] | isEncrypted | whether the key is encrypted or not |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if key is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpBroadcastClientModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t * | ntpMode | ||
| ) |
Get the NTP broadcast client mode.
| [in] | client_handle | Client handle from registration API |
| [out] | ntpMode | NTP broadcast client mode |
| OPEN_E_NONE | if NTP broadcast client mode is returned. |
| OPEN_E_FAIL | if failed to get NTP mode. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.26
| open_error_t openapiNtpBroadcastClientModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t | mode | ||
| ) |
Set the ntp broadcast client mode of the NTP application.
| [in] | client_handle | Client handle from registration API |
| [in] | mode | NTP broadcast client mode |
| OPEN_E_NONE | if NTP broadcast client mode is set successfully. |
| OPEN_E_FAIL | if failed to set NTP mode. |
| OPEN_E_ERROR | if invalid NTP mode |
| OPEN_E_INTERNAL | if internal error. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.26
| open_error_t openapiNtpBroadcastDelayGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | delay | ||
| ) |
Get the Broadcast delay for the NTP application.
| [in] | client_handle | Client handle from registration API |
| [out] | delay | Broadcast delay in milliseconds |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpBroadcastDelaySet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | delay | ||
| ) |
Set the Broadcast delay for the NTP application.
| [in] | client_handle | Client handle from registration API |
| [in] | delay | Broadcast delay in milliseconds |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpEntSoftwareNameGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | swName | ||
| ) |
Get the software name of the running NTP version.
| [in] | client_handle | Client handle from registration API |
| [out] | swName | pointer to the software name. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | invalid parameters. |
| OPEN_E_FAIL | otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpEntSoftwareVersionGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | swVersion | ||
| ) |
Get the software version of the installed NTP implementation.
| [in] | client_handle | Client handle from registration API |
| [out] | swVersion | pointer to the software version. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | invalid parameters. |
| OPEN_E_FAIL | otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpEntStatusBadVersionGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | badVerPkts | ||
| ) |
Get the total number of NTP messages that were delivered to this NTP entity and were for an unsupported NTP version.
| [in] | client_handle | Client handle from registration API |
| [out] | badVerPkts | bad version packets received. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | invalid parameters. |
| OPEN_E_FAIL | otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpEntStatusInPktsGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | inPkts | ||
| ) |
Get the total number of NTP messages delivered to the NTP entity.
| [in] | client_handle | Client handle from registration API |
| [out] | inPkts | packets received. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | invalid parameters. |
| OPEN_E_FAIL | otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpEntStatusOutPktsGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | outPkts | ||
| ) |
Get the total number of NTP messages delivered from the NTP entity.
| [in] | client_handle | Client handle from registration API |
| [out] | outPkts | packets sent. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | invalid parameters. |
| OPEN_E_FAIL | otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpEntStatusProtocolErrorGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | pErrPkts | ||
| ) |
Get the total number of NTP messages that were delivered to this NTP entity and this entity was not able to process due to an NTP protocol error.
| [in] | client_handle | Client handle from registration API |
| [out] | pErrPkts | protocol error packets. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | invalid parameters. |
| OPEN_E_FAIL | otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpEntSystemTypeGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | systemType | ||
| ) |
Get the general hardware/os platform information.
| [in] | client_handle | Client handle from registration API |
| [out] | systemType | pointer to the system type. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | invalid parameters. |
| OPEN_E_FAIL | otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_NTP_MODE_t * | ntpMode | ||
| ) |
Get the NTP mode.
| [in] | client_handle | Client handle from registration API |
| [out] | ntpMode | NTP mode |
| OPEN_E_NONE | if NTP mode is returned. |
| OPEN_E_FAIL | if failed to get NTP mode. |
| OPEN_E_PARAM | if invalid parameter is passed. |
Deprecated OpEN API Version: 1.23 OpEN API Version: 1.26
| open_error_t openapiNtpModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_NTP_MODE_t | mode | ||
| ) |
Set the NTP mode.
| [in] | client_handle | Client handle from registration API |
| [in] | mode | NTP mode |
| OPEN_E_NONE | if NTP mode is set successfully. |
| OPEN_E_FAIL | if failed to set NTP mode. |
| OPEN_E_ERROR | if invalid NTP mode |
| OPEN_E_INTERNAL | if internal error. |
| OPEN_E_PARAM | if invalid parameter is passed. |
Deprecated OpEN API Version: 1.23 OpEN API Version: 1.26
| open_error_t openapiNtpServerAdd | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ipAddr | ||
| ) |
Add an NTP server.
| [in] | client_handle | Client handle from registration API |
| [in] | ipAddr | Buff descriptor for IP address of NTP server - DNS, IPV4 and IPv6 addresses |
| OPEN_E_NONE | if NTP server is added successfully. |
| OPEN_E_FAIL | if failed to add NTP server. |
| OPEN_E_EXISTS | if the server is already configured. |
| OPEN_E_FULL | if no more space is available to add the server. |
| OPEN_E_INTERNAL | if internal error. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpServerAddressTypeGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| OPEN_NTP_ADDRESS_TYPE_t * | ntpServerAddrType | ||
| ) |
Get the NTP server address type.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [out] | ntpServerAddrType | NTP server address type |
| OPEN_E_NONE | if NTP server address type is returned. |
| OPEN_E_NOT_FOUND | if NTP server does not exist. |
| OPEN_E_FAIL | if failed to get NTP server address type. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpServerCurrentEntriesGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | currEntries | ||
| ) |
Get number of NTP servers configured.
| [in] | client_handle | Client handle from registration API |
| [out] | currEntries | Number of NTP servers configured. |
| OPEN_E_NONE | if current number of NTP servers is returned. |
| OPEN_E_FAIL | if failed to get current number of NTP servers. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpServerDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ipAddr | ||
| ) |
Delete an NTP server.
| [in] | client_handle | Client handle from registration API |
| [in] | ipAddr | Buff Descriptor for IP address of NTP server - DNS, IPV4 and IPv6 addresses |
| OPEN_E_NONE | if NTP server is deleted successfully. |
| OPEN_E_FAIL | if failed to delete NTP server. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpServerFirstGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer | ||
| ) |
Get the first NTP server.
| [in] | client_handle | Client handle from registration API |
| [out] | ntpServer | NTP server |
| OPEN_E_NONE | if first NTP server is returned. |
| OPEN_E_FAIL | if NTP server does not exist. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpServerMaxAddrLenGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | ntpServerAddrLen | ||
| ) |
Get the maximum length of NTP server address.
| [in] | client_handle | Client handle from registration API |
| [out] | ntpServerAddrLen | Maximum length of NTP server address |
| OPEN_E_NONE | if NTP server address length is returned successfully. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpServerNextGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| open_buffdesc * | nextNtpServer | ||
| ) |
Get the next NTP server.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | Previous NTP server |
| [out] | nextNtpServer | Next NTP server |
| OPEN_E_NONE | if next NTP server is returned. |
| OPEN_E_NOT_FOUND | if next NTP server does not exist. |
| OPEN_E_FAIL | if previous NTP server is invalid. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpServerReferenceStringLengthGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | refStrLen | ||
| ) |
Get the maximum length of the NTP reference ID string.
| [in] | client_handle | Client handle from registration API |
| [out] | refStrLen | Reference ID string length |
| OPEN_E_NONE | if reference ID string length id returned. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpServersMaxSupportedGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | maxNtpServers | ||
| ) |
Get the maximum number of NTP servers supported.
| [in] | client_handle | Client handle from registration API |
| [out] | maxNtpServers | Maximum number of NTP servers supported |
| OPEN_E_NONE | if the maximum number of NTP servers is returned. |
| OPEN_E_FAIL | if failed to get maximum number of NTP servers. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTableAuthKeyGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| uint32_t * | keyIndex | ||
| ) |
Get the authentication key for an NTP server table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [out] | keyIndex | index of authenticate table entry. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTableAuthKeySet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| uint32_t | keyIndex | ||
| ) |
Set the authentication key for the specified NTP server table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [in] | keyIndex | index of authenticate table entry. |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTableBurstGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| OPEN_BOOL_t * | burst | ||
| ) |
Get the NTP burst status of the server table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [out] | burst | server burst status |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTableBurstSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| OPEN_BOOL_t | burst | ||
| ) |
Set the NTP burst status of the server table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [in] | burst | server burst status |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTableIBurstGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| OPEN_BOOL_t * | iburst | ||
| ) |
Get the NTP iburst status of the server table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [out] | iburst | server iburst status |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTableIBurstSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| OPEN_BOOL_t | iburst | ||
| ) |
Set the NTP iburst status of the server table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [in] | iburst | server iburst status |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTableMaxPollGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| uint16_t * | interval | ||
| ) |
Get the server maximum poll interval in seconds as a power of two.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [out] | interval | power of two of poll interval |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTableMaxPollSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| uint16_t | interval | ||
| ) |
Set the server maximum poll interval in seconds as a power of two.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [in] | interval | power of two of poll interval |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTableMinPollGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| uint16_t * | interval | ||
| ) |
Get the server minimum poll interval in seconds as a power of two.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [out] | interval | power of two of poll interval |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTableMinPollSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| uint16_t | interval | ||
| ) |
Set the server minimum poll interval in seconds as a power of two.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [in] | interval | power of two of poll interval |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTablePreferGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| OPEN_BOOL_t * | prefer | ||
| ) |
Get the NTP prefer status of the server table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [out] | prefer | server preference status |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTablePreferSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| OPEN_BOOL_t | prefer | ||
| ) |
Set the NTP prefer status of the server table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [in] | prefer | server preference status |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTableVersionGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| uint16_t * | version | ||
| ) |
Get the NTP version of the server table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [out] | version | server version |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpServerTableVersionSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | ntpServer, | ||
| uint16_t | version | ||
| ) |
Set the NTP version of the server table entry.
| [in] | client_handle | Client handle from registration API |
| [in] | ntpServer | NTP server |
| [in] | version | server version |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_NOT_FOUND | if NTP server is not found. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpSourceInterfaceGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | intIfNum | ||
| ) |
Get the Source Interface of the NTP application.
| [in] | client_handle | Client handle from registration API |
| [out] | intIfNum | Source Interface number |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpSourceInterfaceSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum | ||
| ) |
Set the Source Interface of the NTP application.
| [in] | client_handle | Client handle from registration API |
| [in] | intIfNum | Source Interface number |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpSupportedModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_NTP_SUPPORTED_MODE_t * | ntpSupportedMode | ||
| ) |
Get the NTP supported mode.
| [in] | client_handle | Client handle from registration API |
| [out] | ntpSupportedMode | NTP supported mode |
| OPEN_E_NONE | if NTP supported mode is returned. |
| OPEN_E_FAIL | if failed to get NTP mode. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.23
| open_error_t openapiNtpVersionGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | version | ||
| ) |
Get the highest NTP version the application supports.
| [in] | client_handle | Client handle from registration API |
| [out] | version | pointer to version |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | invalid parameters. |
| OPEN_E_FAIL | otherwise. |
OpEN API Version: 1.26
| open_error_t openapiNtpVrfNameGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | vrfName | ||
| ) |
Get the VRF name of the NTP server.
| [in] | client_handle | Client handle from registration API |
| [out] | vrfName | VRF Name |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23
| open_error_t openapiNtpVrfNameSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | vrfName | ||
| ) |
Set the VRF name of the NTP server.
| [in] | client_handle | Client handle from registration API |
| [in] | vrfName | VRF Name |
| OPEN_E_NONE | if success. |
| OPEN_E_PARAM | if invalid parameter is passed. |
| OPEN_E_FAIL | otherwise |
OpEN API Version: 1.23