Solaris DHCP Service Developer's Guide

delete_dn()

Purpose

To delete a record from a DHCP network container.

Synopsis

int delete_dn(void *handp, const dn_rec_t *pnp);

Description

Deletes the record identified by the dn_cip and dn_sig elements of pnp from the DHCP network container referred to by the handle handp. If an update collision occurs, the matching record is not deleted from the data store and DSVC_COLLISION is returned.

If the dn_sig signature of pnp is 0, the matching record is simply deleted with no detection of update collisions.

Returns

DSVC_SUCCESS, DSVC_ACCESS, DSVC_NOENT, DSVC_BUSY, DSVC_INTERNAL, DSVC_COLLISION.