Solaris DHCP Service Developer's Guide

delete_dt()

Purpose

To delete a record from the dhcptab container.

Synopsis

int delete_dt(void *handp, const dt_rec_t *dtp);

Description

Deletes the record identified by the key, type and dt_sig fields of dtp from the dhcptab 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. The caller is responsible for freeing any dynamically allocated arguments.

If the dtp signature (dt_sig) 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.