tf6RegisterRouterAdvCB

Jump to: navigation, search

Table of Contents >> Optional Protocols


#include <trsocket.h>


int tf6RegisterRouterAdvCB (
ttUserInterface interfaceHandle,
tt6UserRouterDiscCBFuncPtr userFuncPtr
);


Function Description

Call this function to register an application function to be called each time a Router Advertisement message is received on the specified interface. You might use this feature to parse the message for options that Treck does not support.


Parameters

  • interfaceHandle
    The device handle returned by tfAddInterface().
  • userFuncPtr
    The function to be called for each Router Advertisement message received (click here for function prototype). Specify a NULL pointer to deregister your function.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid interface handle.


Table of Contents >> Optional Protocols