tf6DhcpUserGetRdm

Jump to: navigation, search

Table of Contents >> Optional Protocols >> DHCPv6


#include <trsocket.h>


int tf6DhcpUserGetRdm (
ttUserInterface interfaceHandle,
ttUser64BitPtr rdmData,
int flags
);


Function Description

Retrieve the current value of the RDM field used by DHCPv6 authentication. This should be done from the DHCPv6 callback function when the event TM_6_DHCP_EVENT_STOPPED occurs. Note: Replay detection can present problems to embedded devices lacking non-volatile storage. For instance, when using a monotonically increasing counter as the RDM, some servers will remember the client’s RDM value across sessions. If the embedded device reboots and begins using a RDM value smaller than what the server remembers, the server will reject all authenticated messages from the embedded device. Whenever possible, the current value of the RDM field should be retrieved using tf6DhcpUserGetRdm() before stopping DHCPv6 and then set using tf6DhcpUserSetRdm() before starting DHCPv6. If possible, this value should be saved in non-volatile memory when rebooting.


Parameters

  • interfaceHandle
    Handle to the interface from which to retrieve the current RDM value
  • rdmData
    Pointer to structure in which to save the current RDM value
  • flags
    Currently unused


Returns

  • TM_ENOERROR
    Sucessful
  • TM_EINVAL
    Invalid parameter


Table of Contents >> Optional Protocols >> DHCPv6