#include <routing.h>
This structure enables the RoutingForChipcon-layer to communicate with an arbitrary routing protocol, that exports this interface.
Data Fields | |
u_short(* | discover )(u_short *dst) |
u_short(* | get_address )(void) |
u_short(* | get_next_hop )(u_short *dst) |
int(* | reg_msg_handler )(routing_message_handler_t msg_handler) |
void(* | send_msg )(u_short msg, u_short param) |
u_short(* routing_interface_st::discover)(u_short *dst) |
Starts a route discovery for a given destionation.
If there is already a discovery in progress, the routing protocol SHOULD ignore this call.
dst | [in] destination address |
u_short(* routing_interface_st::get_address)(void) |
SHOULD be used to determine nodes CC1000 interface address.
MUST be used to determine the next hop towards a destination.
dst | [in] destination address |
int(* routing_interface_st::reg_msg_handler)(routing_message_handler_t msg_handler) |
MUST be used to register a handler to receive status messages from the routing protocol.
msg_handler | [in] handler that processes messages from the routing protocol |
void(* routing_interface_st::send_msg)(u_short msg, u_short param) |
Sends a message to the routing protocol
Legitimate Messages are: BROKEN_LINK.
msg | [in] message | |
param | [in] parameter for the corresponding message |