tfRegisterDhcpOfferCB
Table of Contents >> Optional Protocols >> DHCP User Controlled Offer Selection
| #include <trsocket.h> |
| int tfRegisterDhcpOfferCB | ( |
| ttUserInterface interfaceHandle, | |
| ttUserDhcpOfferCBFuncPtr userDhcpOfferCBFuncPtr, | |
| ttUserGenericUnionPtr userParam | |
| ); |
Function Description
Register a callback function with Treck to manage incoming DHCP offers. Callback registration is per interface. Only register a callback function for interfaces on which you wish to receive notification of DHCP offers. A different callback function may be registered on each interface.
Parameters
- interfaceHandle
- The device entry as returned by tfAddInterface().
- userDhcpOfferCBFuncPtr
- Pointer to the user function to be called when a DHCP offer arrives. The user-defined function must conform to the ttUserDhcpOfferCBFunc prototype.
- userParam
- Pointer to an optional user-defined parameter that will be passed to the user's callback function.
Returns
- TM_ENOERROR
- Success.
- TM_EINVAL
- One of the parameters was invalid.
Table of Contents >> Optional Protocols >> DHCP User Controlled Offer Selection