tf6DhcpUserSetRdm

Jump to: navigation, search

Table of Contents >> Optional Protocols >> DHCPv6


#include <trsocket.h>


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


Function Description

Set the initial value of the RDM field used by DHCPv6 authentication 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 on which to store the initial value of the RDM field
  • rdmData
    Pointer to data to use as the initial RDM value
  • flags
    Currently unused


Returns

  • TM_ENOERROR
    Sucessful
  • TM_EINVAL
    Invalid parameter


Table of Contents >> Optional Protocols >> DHCPv6