|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.11.1.2
|
Macros | |
| #define | OPEN_DHCP_CLIENTID_MAX (128) |
| Max length of the DHCP Client Identifier. | |
| #define | OPEN_DHCP_VENDOR_CLASS_STRING_MAX (128) |
| Max length of the vendor class string. | |
Enumerations | |
| enum | OPEN_DHCP_CLIENT_STATE_t { OPEN_DHCPSTATE_INIT = 1, OPEN_DHCPSTATE_SELECTING, OPEN_DHCPSTATE_REQUESTING, OPEN_DHCPSTATE_REQUEST_RECV, OPEN_DHCPSTATE_BOUND, OPEN_DHCPSTATE_RENEWING, OPEN_DHCPSTATE_RENEW_RECV, OPEN_DHCPSTATE_REBINDING, OPEN_DHCPSTATE_REBIND_RECV, OPEN_DHCPSTATE_BOOTP_FALLBACK, OPEN_DHCPSTATE_NOTBOUND, OPEN_DHCPSTATE_FAILED, OPEN_DHCPSTATE_DO_RELEASE, OPEN_DHCPSTATE_INFORM_REQUEST, OPEN_DHCPSTATE_INFORM_ACK_WAIT, OPEN_DHCPSTATE_INFORM_FAILED, OPEN_DHCPSTATE_INFORM_BOUND } |
| enum | OPEN_MGMT_PORT_TYPE_t { OPEN_MGMT_SERVICEPORT = 0, OPEN_MGMT_NETWORKPORT, OPEN_MGMT_IPPORT } |
| < Management port types | |
Functions | |
| open_error_t | openapiDhcpClientStatsClear (openapiClientHandle_t *client_handle, uint32_t ifNum) |
| Clear the DHCP Client Statistics on an interface. More... | |
| open_error_t | openapiDhcpClientStatsGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *numDiscoverSent, uint32_t *numOfferRecvd, uint32_t *numRequestSent, uint32_t *numAckRecvd, uint32_t *numNackRecvd, uint32_t *numReleaseSent, uint32_t *numInformSent, uint32_t *numRebindSent, uint32_t *numRenewSent) |
| Get the DHCP Client Statistics on an interface. More... | |
| open_error_t | openapiDhcpVendorClassOptionAdminModeGet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t *mode) |
| Get the DHCP Vendor Option Mode. More... | |
| open_error_t | openapiDhcpVendorClassOptionAdminModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t mode, OPEN_BOOL_t actImmediate) |
| Set the DHCP Vendor Option Mode. More... | |
| open_error_t | openapiDhcpVendorClassOptionStringGet (openapiClientHandle_t *client_handle, open_buffdesc *bufd) |
| Get the DHCP Vendor Class Option string. More... | |
| open_error_t | openapiDhcpVendorClassOptionStringSet (openapiClientHandle_t *client_handle, open_buffdesc *bufd, OPEN_BOOL_t actImmediate) |
| Set the DHCP Vendor Class Option string. More... | |
| open_error_t | openapiIpDhcpClientDhcpServerIntfIPAddressGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_MGMT_PORT_TYPE_t mgmtPortType, uint32_t *serverAddr) |
| Get the DHCP server IP address on a management interface. More... | |
| open_error_t | openapiIpDhcpClientIdGeneratedGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_MGMT_PORT_TYPE_t mgmtPortType, open_buffdesc *clientId) |
| Get the generated client identifier on the interface. More... | |
| open_error_t | openapiIpDhcpClientIntfRetryCountGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_MGMT_PORT_TYPE_t mgmtPortType, uint32_t *retryCount) |
| Get the retry count of the DHCP client for specified interface or management port. More... | |
| open_error_t | openapiIpDhcpClientIntfStateGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_MGMT_PORT_TYPE_t mgmtPortType, OPEN_DHCP_CLIENT_STATE_t *clientState) |
| Get the current state of the DHCP client for specified interface or management port. More... | |
| open_error_t | openapiIpDhcpClientLeaseTimeIntfInfoGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_MGMT_PORT_TYPE_t mgmtPortType, uint32_t *leaseTime, uint32_t *renewalTime, uint32_t *rebindTime) |
| Get the lease time information of the DHCP client for specified interface or management port. More... | |
| open_error_t | openapiIpDhcpClientTransactionIntfIdGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_MGMT_PORT_TYPE_t mgmtPortType, uint32_t *transId) |
| Get the transaction ID of the DHCP client for specified interface or management port. More... | |
| open_error_t openapiDhcpClientStatsClear | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | ifNum | ||
| ) |
Clear the DHCP Client Statistics on an interface.
| [in] | client_handle | Client handle from registration API |
| [in] | ifNum | Internal Interface Number |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiDhcpClientStatsGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | ifNum, | ||
| uint32_t * | numDiscoverSent, | ||
| uint32_t * | numOfferRecvd, | ||
| uint32_t * | numRequestSent, | ||
| uint32_t * | numAckRecvd, | ||
| uint32_t * | numNackRecvd, | ||
| uint32_t * | numReleaseSent, | ||
| uint32_t * | numInformSent, | ||
| uint32_t * | numRebindSent, | ||
| uint32_t * | numRenewSent | ||
| ) |
Get the DHCP Client Statistics on an interface.
| [in] | client_handle | Client handle from registration API |
| [in] | ifNum | Internal Interface Number |
| [out] | numDiscoverSent | Number of Discovers sent |
| [out] | numOfferRecvd | Number of Offers received |
| [out] | numRequestSent | Number of Requests sent |
| [out] | numAckRecvd | Number of Acks received |
| [out] | numNackRecvd | Number of Nacks received |
| [out] | numReleaseSent | Number of Releases sent |
| [out] | numInformSent | Number of Informs sent |
| [out] | numRebindSent | Number of Rebinds sent |
| [out] | numRenewSent | Number of Renews sent |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiDhcpVendorClassOptionAdminModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t * | mode | ||
| ) |
Get the DHCP Vendor Option Mode.
| [in] | client_handle | Client handle from registration API |
| [out] | mode | DHCP vendor option admin mode(OPEN_ENABLE or OPEN_DISABLE) |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiDhcpVendorClassOptionAdminModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t | mode, | ||
| OPEN_BOOL_t | actImmediate | ||
| ) |
Set the DHCP Vendor Option Mode.
| [in] | client_handle | Client handle from registration API |
| [in] | mode | DHCP vendor option admin mode(OPEN_ENABLE or OPEN_DISABLE) |
| [in] | actImmediate | Immediate action flag(OPEN_TRUE or OPEN_FALSE) |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiDhcpVendorClassOptionStringGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | bufd | ||
| ) |
Get the DHCP Vendor Class Option string.
| [in] | client_handle | Client handle from registration API |
| [out] | bufd | Buffer descriptor to DHCP Vendor Class Option string |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiDhcpVendorClassOptionStringSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | bufd, | ||
| OPEN_BOOL_t | actImmediate | ||
| ) |
Set the DHCP Vendor Class Option string.
| [in] | client_handle | Client handle from registration API |
| [in] | bufd | Buffer descriptor to DHCP Vendor Class Option string |
| [in] | actImmediate | Immediate action flag (OPEN_TRUE or OPEN_FALSE) |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiIpDhcpClientDhcpServerIntfIPAddressGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | ifNum, | ||
| OPEN_MGMT_PORT_TYPE_t | mgmtPortType, | ||
| uint32_t * | serverAddr | ||
| ) |
Get the DHCP server IP address on a management interface.
| [in] | client_handle | Client handle from registration API |
| [in] | ifNum | Internal Interface Number |
| [in] | mgmtPortType | Mangement Interface Type |
| [out] | serverAddr | Pointer to the DHCP server IP Address on an interface |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiIpDhcpClientIdGeneratedGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | ifNum, | ||
| OPEN_MGMT_PORT_TYPE_t | mgmtPortType, | ||
| open_buffdesc * | clientId | ||
| ) |
Get the generated client identifier on the interface.
| [in] | client_handle | Client handle from registration API |
| [in] | ifNum | Internal Interface Number |
| [in] | mgmtPortType | Mangement Interface Type |
| [out] | clientId | Buffer descriptor to the clientId string |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiIpDhcpClientIntfRetryCountGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | ifNum, | ||
| OPEN_MGMT_PORT_TYPE_t | mgmtPortType, | ||
| uint32_t * | retryCount | ||
| ) |
Get the retry count of the DHCP client for specified interface or management port.
| [in] | client_handle | Client handle from registration API |
| [in] | ifNum | Internal Interface Number |
| [in] | mgmtPortType | Mangement Interface Type |
| [out] | retryCount | Pointer to the DHCP client's retry count |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiIpDhcpClientIntfStateGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | ifNum, | ||
| OPEN_MGMT_PORT_TYPE_t | mgmtPortType, | ||
| OPEN_DHCP_CLIENT_STATE_t * | clientState | ||
| ) |
Get the current state of the DHCP client for specified interface or management port.
| [in] | client_handle | Client handle from registration API |
| [in] | ifNum | Internal Interface Number |
| [in] | mgmtPortType | Mangement Interface Type |
| [out] | clientState | Pointer to the DHCP client state |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiIpDhcpClientLeaseTimeIntfInfoGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | ifNum, | ||
| OPEN_MGMT_PORT_TYPE_t | mgmtPortType, | ||
| uint32_t * | leaseTime, | ||
| uint32_t * | renewalTime, | ||
| uint32_t * | rebindTime | ||
| ) |
Get the lease time information of the DHCP client for specified interface or management port.
| [in] | client_handle | Client handle from registration API |
| [in] | ifNum | Internal Interface Number |
| [in] | mgmtPortType | Mangement Interface Type |
| [out] | leaseTime | Pointer to the DHCP client lease time |
| [out] | renewalTime | Pointer to the DHCP client renewal time |
| [out] | rebindTime | Pointer to the DHCP client rebinding time |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiIpDhcpClientTransactionIntfIdGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | ifNum, | ||
| OPEN_MGMT_PORT_TYPE_t | mgmtPortType, | ||
| uint32_t * | transId | ||
| ) |
Get the transaction ID of the DHCP client for specified interface or management port.
| [in] | client_handle | Client handle from registration API |
| [in] | ifNum | Internal Interface Number |
| [in] | mgmtPortType | Mangement Interface Type |
| [out] | transId | Pointer to the DHCP client transaction ID |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25