The rimeaddr module is an abstract representation of addresses in Rime. More...
Files | |
file | rimeaddr.c |
Functions for manipulating Rime addresses. | |
file | rimeaddr.h |
Header file for the Rime address representation. | |
Functions | |
void | rimeaddr_copy (rimeaddr_t *dest, const rimeaddr_t *from) |
Copy a Rime address. | |
int | rimeaddr_cmp (const rimeaddr_t *addr1, const rimeaddr_t *addr2) |
Compare two Rime addresses. | |
void | rimeaddr_set_node_addr (rimeaddr_t *addr) |
Set the address of the current node. | |
Variables | |
rimeaddr_t | rimeaddr_node_addr |
The Rime address of the node. | |
rimeaddr_t | rimeaddr_node_addr |
The Rime address of the node. | |
const rimeaddr_t | rimeaddr_null |
The null Rime address. |
The rimeaddr module is an abstract representation of addresses in Rime.
int rimeaddr_cmp | ( | const rimeaddr_t * | addr1, | |
const rimeaddr_t * | addr2 | |||
) |
Compare two Rime addresses.
addr1 | The first address | |
addr2 | The second address |
This function compares two Rime addresses and returns the result of the comparison. The function acts like the '==' operator and returns non-zero if the addresses are the same, and zero if the addresses are different.
Referenced by mac_LowpanToEthernet(), neighbor_info_packet_received(), neighbor_info_packet_sent(), and sicslowmac_dataRequest().
void rimeaddr_copy | ( | rimeaddr_t * | dest, | |
const rimeaddr_t * | from | |||
) |
Copy a Rime address.
dest | The destination | |
from | The source |
This function copies a Rime address from one location to another.
void rimeaddr_set_node_addr | ( | rimeaddr_t * | addr | ) |
Set the address of the current node.
addr | The address |
This function sets the Rime address of the node.
Referenced by main().
rimeaddr_t rimeaddr_node_addr |
The Rime address of the node.
This variable contains the Rime address of the node. This variable should not be changed directly; rather, the rimeaddr_set_node_addr() function should be used.
Definition at line 48 of file rimeaddr.c.
Referenced by broadcast_send(), and main().
rimeaddr_t rimeaddr_node_addr |
The Rime address of the node.
This variable contains the Rime address of the node. This variable should not be changed directly; rather, the rimeaddr_set_node_addr() function should be used.
Definition at line 48 of file rimeaddr.c.
Referenced by broadcast_send(), and main().
const rimeaddr_t rimeaddr_null |
The null Rime address.
This variable contains the null Rime address. The null address is used in route tables to indicate that the table entry is unused. Nodes with no configured address has the null address. Nodes with their node address set to the null address will have problems communicating with other nodes.
Referenced by mac_LowpanToEthernet(), neighbor_info_packet_received(), neighbor_info_packet_sent(), and sicslowmac_dataRequest().