Function Prototypes:tt6UserRouterDiscCBFuncPtr

Jump to: navigation, search

Table of Contents >> Optional Protocols


void tt6UserRouterDiscCBFuncPtr (
ttUserInterface interfaceHandle,
ttUserPacketPtr messagePtr
);


Function Description

This is a prototype for an application function that is called when a Router Solicitation or Router Advertisement message is received by Treck. Register your function with Treck by calling tf6RegisterRouterSolCB() or tf6RegisterRouterAdvCB() after you create the interface.

Parameter messagePtr is a pointer to a ttUserPacket structure. Fields messagePtr->pktuLinkDataPtr and messagePtr->pktuLinkDataLength are the address and length of the message, respectively. Router Solicitation and Router Advertisement messages are ICMPv6 messages (RFC 4443) that follow the message format defined in RFC 4861, Neighbor Discovery for IPv6.


Parameters

  • interfaceHandle
    The device handle returned by tfAddInterface().
  • messagePtr
    A pointer to the ttUserPacket structure for the message received.


Returns

  • nothing


Table of Contents >> Optional Protocols