Function Prototypes:tt6DhcpNotifyFunc
Table of Contents >> Optional Protocols >> DHCPv6
| #include <trsocket.h> |
| void (TM_CODE_FAR * tt6DhcpNotifyFunc) | ( |
| ttUserInterface interfaceHandle, | |
| int iaIndex, | |
| int addrIndex, | |
| tt6DhcpEvent event | |
| ); |
Function Description
This is the type definition for the DHCPv6 client event notification function. A function of this type may be registered with tf6UseDhcp(). This allows the user to be notified of DHCPv6-related events, as described below.
Parameters
- interfaceHandle
- Handle to the interface on which the event occurred
- iaIndex
- IA index on which the event occurred. Currently, only one IA is supported per interface, and this value will always be set to 0
- addrIndex
- 0-based index of the DHCPv6 address on which the event occurred
- event
- DHCPv6 client event
Event Descriptions
- TM_6_DHCP_EVENT_SOLICIT_TIMEOUT
- Solicit timed out
- Note: By default, the Solicit phase cannot time out. See tf6DhcpSetOption()
- TM_6_DHCP_EVENT_NO_SERVER
- No DHCPv6 server available
- TM_6_DHCP_EVENT_CONFIRM_FAILED
- Confirm failed
- TM_6_DHCP_EVENT_CONFIRM_OK
- Confirm OK
- Note: This event also occurs if the Confirm message times out without receiving a reply. In this case, the client should continue to use any addresses granted to it
- TM_6_DHCP_EVENT_INFO_RECEIVED
- Received a valid Reply in response to an Information-Request message
- TM_6_DHCP_EVENT_LEASE_RENEWED
- The DHCPv6 server has extended the lifetimes of the addresses in the given IA
- TM_6_DHCP_EVENT_STOPPED
- The DHCPv6 client is shutting down