|
Contiki 3.x
|
The linkaddr module is an abstract representation of addresses in Rime. More...
Functions | |
| void | linkaddr_copy (linkaddr_t *dest, const linkaddr_t *from) |
| Copy a Rime address. More... | |
| int | linkaddr_cmp (const linkaddr_t *addr1, const linkaddr_t *addr2) |
| Compare two Rime addresses. More... | |
| void | linkaddr_set_node_addr (linkaddr_t *addr) |
| Set the address of the current node. More... | |
Variables | |
| linkaddr_t | linkaddr_node_addr |
| The Rime address of the node. More... | |
| linkaddr_t | linkaddr_node_addr |
| The Rime address of the node. More... | |
| const linkaddr_t | linkaddr_null |
| The null Rime address. More... | |
The linkaddr module is an abstract representation of addresses in Rime.
| int linkaddr_cmp | ( | const linkaddr_t * | addr1, |
| const linkaddr_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. Definition at line 66 of file linkaddr.c.
Referenced by find_handle(), mac_sequence_is_duplicate(), mac_sequence_register_seqno(), packetbuf_holds_broadcast(), retransmit_current_packet(), and update_parent().
| void linkaddr_copy | ( | linkaddr_t * | dest, |
| const linkaddr_t * | from | ||
| ) |
Copy a Rime address.
| dest | The destination |
| from | The source This function copies a Rime address from one location
to another. |
Definition at line 60 of file linkaddr.c.
Referenced by create_frame(), frame802154_parse(), linkaddr_set_node_addr(), mac_sequence_register_seqno(), output(), retransmit_current_packet(), send_packet(), send_queued_packet(), and update_parent().
| void linkaddr_set_node_addr | ( | linkaddr_t * | addr | ) |
Set the address of the current node.
| addr | The address This function sets the Rime address of the node. |
Definition at line 72 of file linkaddr.c.
References linkaddr_copy(), and linkaddr_node_addr.
Referenced by main().
| linkaddr_t linkaddr_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 linkaddr_set_node_addr() function should be used.
Definition at line 48 of file linkaddr.c.
Referenced by abc_input(), abc_send(), broadcast_send(), create_frame(), ipolite_send(), linkaddr_set_node_addr(), main(), mesh_send(), retransmit_current_packet(), send_packet(), send_queued_packet(), shell_prompt(), and update_rtmetric().
| linkaddr_t linkaddr_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 linkaddr_set_node_addr() function should be used.
Definition at line 48 of file linkaddr.c.
| const linkaddr_t linkaddr_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.
Definition at line 37 of file eth-conf.c.
Referenced by frame802154_parse(), output(), packetbuf_holds_broadcast(), and update_parent().
1.8.6