JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris DHCP Service Developer's Guide     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

1.  Overview of Solaris DHCP Data Access Architecture

2.  Architecture Features for Module Writers

3.  Service Provider Layer API

General Data Store Functions

configure()

Purpose

Synopsis

Description

Returns

mklocation()

Purpose

Synopsis

Description

Returns

status()

Purpose

Synopsis

Description

Returns

version()

Purpose

Synopsis

Description

Returns

dhcptab Functions

list_dt()

Purpose

Synopsis

Description

Returns

open_dt()

Purpose

Synopsis

Description

Returns

lookup_dt()

Purpose

Synopsis

Description

Returns

add_dt()

Purpose

Synopsis

Description

Returns

modify_dt()

Purpose

Synopsis

Description

Returns

delete_dt()

Purpose

Synopsis

Description

Returns

close_dt()

Purpose

Synopsis

Description

Returns

remove_dt()

Purpose

Synopsis

Description

Returns

DHCP Network Container Functions

list_dn()

Purpose

Synopsis

Description

Returns

open_dn()

Purpose

Synopsis

Description

Returns

lookup_dn()

Purpose

Synopsis

Description

Returns

add_dn()

Purpose

Synopsis

Description

Returns

modify_dn()

Purpose

Synopsis

Description

Returns

delete_dn()

Purpose

Synopsis

Description

Returns

close_dn()

Purpose

Synopsis

Description

Returns

remove_dn()

Purpose

Synopsis

Description

Returns

Generic Error Codes

4.  Code Samples and Testing

Index

Generic Error Codes

The Framework Configuration Layer and Service Provider Layer API functions will return the following integer error values. Note that the file /usr/include/dhcp_svc_public.h is the definitive source for these codes.

 * Standard interface errors 
*/ 
#define DSVC_SUCCESS           0   /* success */ 
#define DSVC_EXISTS            1   /* object already exists */ 
#define DSVC_ACCESS            2   /* access denied */ 
#define DSVC_NO_CRED           3   /* No underlying credential */ 
#define DSVC_NOENT             4   /* object doesn't exist */ 
#define DSVC_BUSY              5   /* object temporarily busy (again) */ 
#define DSVC_INVAL             6   /* invalid argument(s) */ 
#define DSVC_INTERNAL          7   /* internal data store error */ 
#define DSVC_UNAVAILABLE       8   /* underlying service required by */ 
                                   /* public module unavailable */ 
#define DSVC_COLLISION         9   /* update collision */ 
#define DSVC_UNSUPPORTED       10  /* operation not supported */ 
#define DSVC_NO_MEMORY         11  /* operation ran out of memory */ 
#define DSVC_NO_RESOURCES      12  /* non-memory resources unavailable */ 
#define DSVC_BAD_RESOURCE      13  /* malformed/missing RESOURCE setting */ 
#define DSVC_BAD_PATH          14  /* malformed/missing PATH setting */ 
#define DSVC_MODULE_VERSION    15  /* public module version mismatch */ 
#define DSVC_MODULE_ERR        16  /* internal public module error */ 
#define DSVC_MODULE_LOAD_ERR   17  /* error loading public module */ 
#define DSVC_MODULE_UNLOAD_ERR 18  /* error unloading public module */ 
#define DSVC_MODULE_CFG_ERR    19  /* module configuration failure */
#define DSVC_SYNCH_ERR         20  /* error in synchronization protocol */ 
#define DSVC_NO_LOCKMGR        21  /* cannot contact lock manager */ 
#define DSVC_NO_LOCATION       22  /* location nonexistent */ 
#define DSVC_BAD_CONVER        23  /* malformed/missing CONVER setting */ 
#define DSVC_NO_TABLE          24  /* table does not exist */
#define DSVC_TABLE_EXISTS      25  /* table already exists */
#define DSVC_NERR                  (DSVC_TABLE_EXISTS + 1)