addressOffered

The addressOffered routine is used for accounting. Parameters passed to the routine are read-only. The routine has no return code to prevent sending the outgoing message.

It is called when a DHCP client is ready to be sent an address OFFER message. The following is the structure of the addressOffered routine:

void addressOffered  ( caddr_t hObjectInstance,
                       const struct dhcpclientid *cid,
                       const struct in_addr *addr,
                       const struct dhcpmessage *outMessage,
                       size_t messageSize                     ) ;
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 to be offered to the client.
outMessage Is the outgoing message that is ready to be sent to the client.
messageSize Is the length, in bytes, of the outgoing message that is ready to be sent to the client.