|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.13.1.2
|
Data Structures | |
| struct | OPEN_DHCP_SERVER_CLIENT_ID_t |
| struct | OPEN_DHCP_SERVER_POOL_NAME_t |
| struct | OPEN_DHCP_SERVER_POOL_VRF_NAME_t |
| struct | openDhcpsDefaultRouters_t |
| struct | openDhcpsDnsServers_t |
| struct | openDhcpsNetbiosServers_t |
| struct | openDhcpsNtpServers_t |
Macros | |
| #define | OPEN_DHCP_SERVER_CLIENT_ID_MAXLEN 255 |
| Maximum client ID, includes terminating '\0'. | |
| #define | OPEN_DHCP_SERVER_CLIENT_ID_STR_MAXLEN (3 * OPEN_DHCP_SERVER_CLIENT_ID_MAXLEN) |
| Maximum client id string lenght in xx:xx:xx:xx.... More... | |
| #define | OPEN_DHCP_SERVER_CLIENT_NAME_MAXLEN 31 |
| Maximum client name length. More... | |
| #define | OPEN_DHCP_SERVER_POOL_NAME_MAXLEN 32 |
| Maximum pool name, includes terminating '\0'. | |
| #define | OPEN_DHCP_SERVER_POOL_VRF_NAME_MAXLEN 65 |
| Maximum VRF name, includes terminating '\0'. | |
| #define | OPEN_DHCPS_BOOT_FILE_NAME_MAXLEN 128 |
| #define | OPEN_DHCPS_DEFAULT_ROUTER_MAX 8 |
| #define | OPEN_DHCPS_DNS_SERVER_MAX 8 |
| #define | OPEN_DHCPS_DOMAIN_NAME_MAXLEN 255 |
| #define | OPEN_DHCPS_LEASETIME_MAX 86400 |
| 60 days | |
| #define | OPEN_DHCPS_LEASETIME_MIN 1 |
| 1 minute | |
| #define | OPEN_DHCPS_MAX_POOL_NUMBER 256 |
| #define | OPEN_DHCPS_NETBIOS_NAME_SERVER_MAX 8 |
| #define | OPEN_DHCPS_NTP_SERVER_MAX 2 |
| #define | OPEN_DHCPS_POOL_NAME_MAXLEN 31 |
| #define | OPEN_DHCPS_POOL_NAME_MINLEN 1 |
| #define OPEN_DHCP_SERVER_CLIENT_ID_STR_MAXLEN (3 * OPEN_DHCP_SERVER_CLIENT_ID_MAXLEN) |
Maximum client id string lenght in xx:xx:xx:xx....
fromat
Definition at line 66 of file openapi_dhcp_server.h.
| #define OPEN_DHCP_SERVER_CLIENT_NAME_MAXLEN 31 |
Maximum client name length.
DHCP Pool name
Definition at line 67 of file openapi_dhcp_server.h.
Definition at line 54 of file openapi_dhcp_server.h.
< Pool types
| Enumerator | |
|---|---|
| OPEN_DHCP_SERVER_POOL_TYPE_INACTIVE |
inactive |
| OPEN_DHCP_SERVER_POOL_TYPE_DYNAMIC |
dynamic |
| OPEN_DHCP_SERVER_POOL_TYPE_MANUAL |
manual |
Definition at line 46 of file openapi_dhcp_server.h.
| enum OPEN_DHCPS_STAT_ID_t |
Definition at line 88 of file openapi_dhcp_server.h.
| Enumerator | |
|---|---|
| OPEN_NETBIOS_BROADCAST_NODE |
Broadcast node. |
| OPEN_NETBIOS_P2P_NODE |
Peer to Peer node. |
| OPEN_NETBIOS_MIXED_NODE |
Mixed node. |
| OPEN_NETBIOS_HYBRID_NODE |
Hybrid node. |
Definition at line 107 of file openapi_dhcp_server.h.
| open_error_t openapiConvertClientId | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | clientIdBuf, | ||
| OPEN_DHCP_SERVER_CLIENT_ID_t * | clientId, | ||
| uint32_t * | clientIdLen | ||
| ) |
Utility fucntion to convert user provided client id to string format as required for the open api.
| [in] | client_handle | client handle from registration API |
| [in] | clientIdBuf | Buffer containing client id string in xx:xx:xx:xx:xx:xx.... format |
| [out] | clientId | Client Identifier of the DHCP client in OPEN_DHCP_SERVER_CLIENT_ID_t format |
| [out] | clientIdLen | Length of the client identifier |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsAdminModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t * | mode | ||
| ) |
Get the DHCP server admin mode.
| [in] | client_handle | client handle from registration API |
| [out] | mode | DHCP Server mode |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsAdminModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t | mode | ||
| ) |
Set the DHCP server admin mode.
| [in] | client_handle | client handle from registration API |
| [in] | mode | DHCP Server mode |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsBootfileDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Delete the boot file name.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsBootfileGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_buffdesc * | fileName | ||
| ) |
Get the boot file name.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | fileName | Boot file name for Bootp client |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsBootfileSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_buffdesc * | fileName | ||
| ) |
Set the boot file name.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | fileName | Boot file name for Bootp client |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsBootpAutomaticGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t * | mode | ||
| ) |
Get the Bootp client allocation mode.
| [in] | client_handle | client handle from registration API |
| [out] | mode | Bootp auto allocation mode |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsBootpAutomaticSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CONTROL_t | mode | ||
| ) |
Set the Bootp client allocation mode.
| [in] | client_handle | client handle from registration API |
| [in] | mode | Bootp auto allocation mode |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsClientIdDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Delete the client identifier of the DHCP client.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsClientIdGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| OPEN_DHCP_SERVER_CLIENT_ID_t * | clientId, | ||
| uint32_t * | clientIdLen | ||
| ) |
Get the client identifier of the DHCP client.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | clientId | Client Identifier of the DHCP client |
| [out] | clientIdLen | Length of the client identifier |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsClientIdSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| OPEN_DHCP_SERVER_CLIENT_ID_t * | clientId, | ||
| uint32_t | clientIdLen | ||
| ) |
Configure the client identifier of the DHCP client.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | clientId | Client Identifier of the DHCP client |
| [in] | clientIdLen | Length of the client identifier |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsClientNameDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Delete the client name of the DHCP client.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsClientNameGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_buffdesc * | ClientName | ||
| ) |
Get the client name of the DHCP client.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | ClientName | Name of the DHCP client |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsClientNameSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_buffdesc * | ClientName | ||
| ) |
Configure the client name of the DHCP client.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | ClientName | Name of the DHCP client |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsDefaultRoutersGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| openDhcpsDefaultRouters_t * | defaultRouters | ||
| ) |
Get the default routers for DHCP hosts in a given pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | defaultRouters | Array of default router address |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsDefaultRoutersReset | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Reset the default routers for DHCP hosts in a given pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsDefaultRoutersSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| openDhcpsDefaultRouters_t * | defaultRouters | ||
| ) |
Set the default routers for DHCP hosts in a given pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | defaultRouters | Array of default router address |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsDnsServersGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| openDhcpsDnsServers_t * | dnsServers | ||
| ) |
Get the DNS servers for DHCP hosts in a given pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | dnsServers | Array of DNS server address |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsDnsServersReset | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Reset the DNS servers for DHCP hosts in a given pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsDnsServersSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| openDhcpsDnsServers_t * | dnsServers | ||
| ) |
Set the DNS servers for DHCP hosts in a given pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | dnsServers | Array of DNS server address |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsDomainNameDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Delete the domain name of a DHCP client.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsDomainNameGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_buffdesc * | domainName | ||
| ) |
Get the domain name of a DHCP client.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | domainName | Domain name of the DHCP client |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsDomainNameSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_buffdesc * | domainName | ||
| ) |
Set the domain name of a DHCP client.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | domainName | Domain name of the DHCP client |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpServerAllLeaseDataClear | ( | openapiClientHandle_t * | client_handle | ) |
Clear all lease data across all VRFs.
| [in] | client_handle | Client handle from registration API |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if get operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpServerExcludedAddressRangeAdd | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_VRF_NAME_t * | vrfName, | ||
| open_inet_addr_t * | lowIpAddr, | ||
| open_inet_addr_t * | highIpAddr | ||
| ) |
Add an excluded-address range for a given VRF instance.
| [in] | client_handle | Client handle from registration API |
| [in] | vrfName | VRF instance name |
| [in] | lowIpAddr | Start IPv4 address of the address range |
| [in] | highIpAddr | End IPv4 address of the address range |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if add operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpServerExcludedAddressRangeDelete | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_VRF_NAME_t * | vrfName, | ||
| open_inet_addr_t * | lowIpAddr, | ||
| open_inet_addr_t * | highIpAddr | ||
| ) |
Delete an excluded-address range for a given VRF instance.
| [in] | client_handle | Client handle from registration API |
| [in] | vrfName | VRF instance name |
| [in] | lowIpAddr | Start IPv4 address of the address range |
| [in] | highIpAddr | End IPv4 address of the address range |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if delete operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpServerExcludedAddressRangeEntryFirstGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | pRangeIndex, | ||
| OPEN_DHCP_SERVER_POOL_VRF_NAME_t * | vrfName, | ||
| open_inet_addr_t * | startIpAddr, | ||
| open_inet_addr_t * | endIpAddr | ||
| ) |
Get the first DHCP server excluded IP address range entry.
| [in] | client_handle | Client handle from registration API |
| [in] | pRangeIndex | Index to get first entry |
| [out] | vrfName | Name of VRF instance in which IP addresses are configured to be excluded |
| [out] | startIpAddr | Starting IP address of range |
| [out] | endIpAddr | Ending IP address of range |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if failure or no entry found found. |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpServerExcludedAddressRangeEntryNextGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | pRangeIndex, | ||
| OPEN_DHCP_SERVER_POOL_VRF_NAME_t * | vrfName, | ||
| open_inet_addr_t * | startIpAddr, | ||
| open_inet_addr_t * | endIpAddr | ||
| ) |
Get the next DHCP server excluded IP address range entry.
| [in] | client_handle | Client handle from registration API |
| [in] | pRangeIndex | Index to get next entry |
| [out] | vrfName | Name of VRF instance in which IP addresses are configured to be excluded |
| [out] | startIpAddr | Starting IP address of range |
| [out] | endIpAddr | Ending IP address of range |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if failure |
| OPEN_E_NOT_FOUND | if no entry found |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpServerLeaseDataGet | ( | openapiClientHandle_t * | client_handle, |
| open_inet_addr_t * | ipaddr, | ||
| uint32_t * | mask, | ||
| open_buffdesc * | hwaddr, | ||
| OPEN_DHCP_SERVER_CLIENT_ID_t * | clientId, | ||
| OPEN_DHCP_SERVER_POOL_NAME_t * | poolName, | ||
| uint32_t * | remaining | ||
| ) |
Get the DHCP Server Lease Data.
| [in] | client_handle | Client handle from registration API |
| [in] | ipaddr | IP address assigned to lease |
| [out] | mask | IP Mask |
| [out] | hwaddr | Hardware address |
| [out] | clientId | Client ID |
| [out] | poolName | Pool name |
| [out] | remaining | Remaining time in seconds |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if get operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.18
| open_error_t openapiDhcpServerLeaseEntryFirstGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_NAME_t * | poolName, | ||
| uint32_t * | leaseIndex, | ||
| open_inet_addr_t * | ipaddr, | ||
| OPEN_DHCP_SERVER_LEASE_STATE_t * | state | ||
| ) |
Get the first DHCP Server Lease Entry.
| [in] | client_handle | Client handle from registration API |
| [in] | poolName | Pool name |
| [out] | leaseIndex | Lease index |
| [out] | ipaddr | Lease IP address |
| [out] | state | State of the lease |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if failure or no entry found found. |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.18
| open_error_t openapiDhcpServerLeaseEntryNextGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_NAME_t * | poolName, | ||
| uint32_t * | leaseIndex, | ||
| open_inet_addr_t * | ipaddr, | ||
| OPEN_DHCP_SERVER_LEASE_STATE_t * | state | ||
| ) |
Get the next DHCP Server Lease Entry.
| [in] | client_handle | Client handle from registration API |
| [in] | poolName | Pool name |
| [in,out] | leaseIndex | Lease index |
| [out] | ipaddr | Lease IP address |
| [out] | state | State of the lease |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if failure |
| OPEN_E_NOT_FOUND | if no entry found |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.18
| open_error_t openapiDhcpServerPoolEntryFirstGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | poolIndex, | ||
| OPEN_DHCP_SERVER_POOL_NAME_t * | poolName | ||
| ) |
Get the first DHCP Server Pool Entry.
| [in] | client_handle | Client handle from registration API |
| [out] | poolIndex | Pool index |
| [out] | poolName | Pool name |
| OPEN_E_NONE | if successful |
| OPEN_E_NOT_FOUND | if no entry found |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.18
| open_error_t openapiDhcpServerPoolEntryNextGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | poolIndex, | ||
| OPEN_DHCP_SERVER_POOL_NAME_t * | poolName | ||
| ) |
Get the next DHCP Server Pool Entry.
| [in] | client_handle | Client handle from registration API |
| [in,out] | poolIndex | Pool index |
| [out] | poolName | Pool name |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if failure |
| OPEN_E_NOT_FOUND | if no entry found |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.18
| open_error_t openapiDhcpServerPoolIpAddrLeaseDataClear | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_NAME_t * | poolName, | ||
| open_inet_addr_t * | ipaddr | ||
| ) |
Clear lease data for pool name and IP address.
| [in] | client_handle | Client handle from registration API |
| [in] | poolName | Pool name |
| [in] | ipaddr | IP address assigned to lease |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if get operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpServerPoolLeaseDataClear | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_NAME_t * | poolName | ||
| ) |
Clear all lease data of a pool.
| [in] | client_handle | Client handle from registration API |
| [in] | poolName | Pool name |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if get operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpServerPoolTypeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_NAME_t * | poolName, | ||
| OPEN_DHCP_SERVER_POOL_TYPE_t * | type | ||
| ) |
Get the DHCP Server Pool Type.
| [in] | client_handle | Client handle from registration API |
| [in] | poolName | Pool name |
| [out] | type | Pool type |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if failure |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.18
| open_error_t openapiDhcpServerPoolVrfNameGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_NAME_t * | poolName, | ||
| OPEN_DHCP_SERVER_POOL_VRF_NAME_t * | vrfName | ||
| ) |
Get the name of the VRF instance of a given DHCP server pool.
| [in] | client_handle | Client handle from registration API |
| [in] | poolName | Pool name |
| [out] | vrfName | Name of VRF-instance of the pool |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if failure |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpServerPoolVrfNameSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_NAME_t * | poolName, | ||
| OPEN_DHCP_SERVER_POOL_VRF_NAME_t * | vrfName | ||
| ) |
Set the name of the VRF instance of a given DHCP server pool.
| [in] | client_handle | Client handle from registration API |
| [in] | poolName | Pool name |
| [in] | vrfName | Name of VRF-instance of the pool |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if failure |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpServerPoolVrfNameSetToDefaultVrf | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_NAME_t * | poolName | ||
| ) |
Set the name of the VRF instance of a given DHCP server pool.
| [in] | client_handle | Client handle from registration API |
| [in] | poolName | Pool name |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if failure |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpServerStatGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCPS_STAT_ID_t | id, | ||
| uint32_t * | val | ||
| ) |
Get the specified DHCP Server statistic.
| [in] | client_handle | Client handle from registration API |
| [in] | id | Statistic identifier |
| [out] | val | Statistic value |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if failure |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.18
| open_error_t openapiDhcpServerVrfIpAddrLeaseDataClear | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_VRF_NAME_t * | vrfName, | ||
| open_inet_addr_t * | ipaddr | ||
| ) |
Clear lease data for VRF name and IP address.
| [in] | client_handle | Client handle from registration API |
| [in] | vrfName | VRF instance name |
| [in] | ipaddr | IP address assigned to lease |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if get operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpServerVrfIpAddrLeaseDataGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_VRF_NAME_t * | vrfName, | ||
| open_inet_addr_t * | ipaddr, | ||
| uint32_t * | mask, | ||
| open_buffdesc * | hwaddr, | ||
| OPEN_DHCP_SERVER_CLIENT_ID_t * | clientId, | ||
| OPEN_DHCP_SERVER_POOL_NAME_t * | poolName, | ||
| uint32_t * | remaining | ||
| ) |
Get the DHCP server lease data for a given VRF name and IP address.
| [in] | client_handle | Client handle from registration API |
| [in] | vrfName | VRF instance name |
| [in] | ipaddr | IP address assigned to lease |
| [out] | mask | IP Mask |
| [out] | hwaddr | Hardware address |
| [out] | clientId | Client ID |
| [out] | poolName | Pool name |
| [out] | remaining | Remaining time in seconds |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if get operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpServerVrfLeaseDataClear | ( | openapiClientHandle_t * | client_handle, |
| OPEN_DHCP_SERVER_POOL_VRF_NAME_t * | vrfName | ||
| ) |
Clear all lease data of a VRF instance.
| [in] | client_handle | Client handle from registration API |
| [in] | vrfName | VRF instance name |
| OPEN_E_NONE | if successful |
| OPEN_E_FAIL | if get operation has failed |
| OPEN_E_PARAM | if invalid parameter is supplied |
OpEN API Version: 1.20
| open_error_t openapiDhcpsHostDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Delete the DHCP Host address and mask for a pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsHostGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_inet_pfx_t * | hostAddr | ||
| ) |
Get the DHCP Host network for a manual pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | hostAddr | Address to be assigned to the host |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsHostSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_inet_pfx_t | hostAddr | ||
| ) |
Set the DHCP Host network for a manual pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | hostAddr | Address to be assigned to the host |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsHwAddressDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Delete the DHCP host hardware address for a manual pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsHwAddressGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_buffdesc * | hwAddr, | ||
| OPEN_DHCPS_HW_TYPES_t * | hwType | ||
| ) |
Get the DHCP host hardware address for a manual pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | hwAddr | Hardware address |
| [out] | hwType | Type of hardware address |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsHwAddressSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_buffdesc * | hwAddr, | ||
| OPEN_DHCPS_HW_TYPES_t | hwType | ||
| ) |
Set the DHCP host hardware address for a manual pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | hwAddr | Hardware address |
| [in] | hwType | Type of hardware address |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsLeaseTimeGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| uint32_t * | leaseTime | ||
| ) |
Get the DHCP lease time.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | leaseTime | Lease time in minutes |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsLeaseTimeReset | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Reset the DHCP lease time.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsLeaseTimeSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| uint32_t | leaseTime | ||
| ) |
Set the DHCP lease time.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | leaseTime | Lease time in minutes |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNetbiosNameServerAddressDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Delete the Netbios name server addresses in given pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNetbiosNameServerAddressGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| openDhcpsNetbiosServers_t * | netBiosNameServers | ||
| ) |
Get the Netbios name server addresses in given pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | netBiosNameServers | Array of Netbios name server addresses |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNetbiosNameServerAddressSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| openDhcpsNetbiosServers_t * | netBiosNameServers | ||
| ) |
Set the Netbios name server addresses in given pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | netBiosNameServers | Array of Netbios name server addresses |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNetbiosNodeTypeDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Delete the type of Netbios node.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNetbiosNodeTypeGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| OPEN_NETBIOS_NODE_TYPES_t * | nodeType | ||
| ) |
Get the type of Netbios node.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | nodeType | Type of the Netbios node |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNetbiosNodeTypeSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| OPEN_NETBIOS_NODE_TYPES_t | nodeType | ||
| ) |
Set the type of Netbios node.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | nodeType | Type of the Netbios node |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNetworkDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Delete the DHCP Host network for a pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNetworkGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_inet_pfx_t * | networkAddr | ||
| ) |
Get the DHCP Host network for a pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | networkAddr | Address pool used for the hosts |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNetworkSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_inet_pfx_t | networkAddr | ||
| ) |
Set the DHCP Host network for a pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | networkAddr | Address pool to be assigned to the hosts |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNextServerDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Delete the next server IP address.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNextServerGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_inet_addr_t * | nextAddress | ||
| ) |
Get the next server IP address.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | nextAddress | Next server address |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNextServerSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| open_inet_addr_t | nextAddress | ||
| ) |
Set the next server IP address.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | nextAddress | Next server address |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNoOfPingPktGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | pingPacketCount | ||
| ) |
Get the number of pings to be sent out by DHCP server before assigning the address.
| [in] | client_handle | client handle from registration API |
| [out] | pingPacketCount | Number of ping packets to be sent |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNoOfPingPktReset | ( | openapiClientHandle_t * | client_handle | ) |
Set the number of pings to be sent out by DHCP server before assigning the address, to default count.
| [in] | client_handle | client handle from registration API |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNoOfPingPktSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | pingPacketCount | ||
| ) |
Set the number of pings to be sent out by DHCP server before assigning the address.
| [in] | client_handle | client handle from registration API |
| [in] | pingPacketCount | Number of ping packets to be sent |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNTPServerDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Delete the NTP server addresses for a given pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNTPServerGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| openDhcpsNtpServers_t * | ntpServers | ||
| ) |
Get the NTP server addresses for a given pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | ntpServers | Array of NTP server addresses |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsNTPServerSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| openDhcpsNtpServers_t * | ntpServers | ||
| ) |
Set the NTP server addresses for a given pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | ntpServers | Array of NTP server addresses |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsPoolAutoDefaultRouterModeGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| OPEN_BOOL_t * | isAutoDefRtrModeEnabled | ||
| ) |
Get the auto default router mode for a given DHCP Pool name.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [out] | isAutoDefRtrModeEnabled | Flag to return auto default router mode |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.28
| open_error_t openapiDhcpsPoolAutoDefaultRouterModeSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName, | ||
| OPEN_BOOL_t | isAutoDefRtrModeEnabled | ||
| ) |
Set the auto default router mode for a given DHCP Pool name.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of the DHCP server address pool |
| [in] | isAutoDefRtrModeEnabled | Flag to set auto default router mode |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.28
| open_error_t openapiDhcpsPoolCreate | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Create a DHCP server address pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsPoolDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | poolName | ||
| ) |
Delete a DHCP server address pool.
| [in] | client_handle | client handle from registration API |
| [in] | poolName | Name of DHCP server address pool |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiDhcpsStatisticsClear | ( | openapiClientHandle_t * | client_handle | ) |
Clear the DHCP server statistics.
| [in] | client_handle | client handle from registration API |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26