Solaris DHCP Service Developer's Guide

The Service Provider Layer API

The Service Provider Layer API consists of functions, data structures, and manifest constants contained in the /usr/include/dhcp_svc_public.h file.

The functions are summarized in the following table, with links to sections with more detail about each function.

Table 1–1 Service Provider Layer API Functions

API Function 

Use 

General functions for all data store containers 

configure()

Pass a configuration string to the data store. Optional function. 

mklocation()

Create the location in which the data store will reside. 

status()

Return general status information for the data store. 

version()

Return the version of the Service Provider Layer API implemented by the data store container. 

Functions for dhcptab containers

list_dt()

Return the dhcptab container name.

open_dt()

Open or create the dhcptab container.

lookup_dt()

Perform a query for records in the dhcptab container.

add_dt()

Add a record to the dhcptab container.

modify_dt()

Modify an existing record in the dhcptab container.

delete_dt()

Delete a record from the dhcptab container.

close_dt()

Close the dhcptab container.

remove_dt()

Remove the dhcptab container from the data store.

Functions for DHCP network containers 

list_dn()

Return a list of DHCP network container names. 

open_dn()

Open or create a DHCP network container. 

lookup_dn()

Perform a query for records in a DHCP network container. 

add_dn()

Add a record to a DHCP network container. 

modify_dn()

Modify an existing record in a DHCP network container. 

delete_dn()

Delete a record from a DHCP network container. 

close_dn()

Close a DHCP network container. 

remove_dn()

Remove a DHCP network container from the data store.