addressDeleted
The addressDeleted routine is used for accounting when any address association is explicitly deleted from lack of interaction with the client or because of a lease expired.
Most commonly, this routine is invoked when the DHCP server is reinitialized, when a new configuration might cause a previous client and address association to become invalid, or when the administrator explicitly deletes an address using the dadmin command. Parameters given to the routine are read-only.
The structure of the addressDeleted routine follows:
void addressDeleted ( caddr_t hObjectInstance,
const struct dhcpclientid *cid,
const struct in_addr *addr,
const char *hostname,
const char *domain ) ;
Where:
Item | Description |
---|---|
hObjectInstance | Is the same configuration instance handle created when this object was initialized. |
cid | Is the client identifier of the client. |
addr | Is the address previously used by the client. |
hostname | Is the hostname previously associated with this client and address binding. |
domain | Is the domain in which the hostname for the client was (or should have been) previously updated. |