Contiki-NG
|
The linkaddr module handles link-layer addresses. More...
Functions | |
void | linkaddr_copy (linkaddr_t *dest, const linkaddr_t *from) |
Copy a link-layer address. More... | |
bool | linkaddr_cmp (const linkaddr_t *addr1, const linkaddr_t *addr2) |
Compare two link-layer 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 link-layer address of the node. More... | |
linkaddr_t | linkaddr_node_addr |
The link-layer address of the node. More... | |
const linkaddr_t | linkaddr_null |
The null link-layer address. More... | |
The linkaddr module handles link-layer addresses.
bool linkaddr_cmp | ( | const linkaddr_t * | addr1, |
const linkaddr_t * | addr2 | ||
) |
Compare two link-layer addresses.
addr1 | The first address |
addr2 | The second address |
Definition at line 69 of file linkaddr.c.
Referenced by packetbuf_holds_broadcast(), and tsch_queue_update_all_backoff_windows().
void linkaddr_copy | ( | linkaddr_t * | dest, |
const linkaddr_t * | from | ||
) |
Copy a link-layer address.
dest | The destination |
from | The source This function copies a link-layer address from one location to another. |
Definition at line 63 of file linkaddr.c.
Referenced by platform_init_stage_three().
void linkaddr_set_node_addr | ( | linkaddr_t * | addr | ) |
Set the address of the current node.
addr | The address This function sets the link-layer address of the node. |
Definition at line 75 of file linkaddr.c.
linkaddr_t linkaddr_node_addr |
The link-layer address of the node.
This variable contains the link-layer 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 platform_init_stage_three().
|
extern |
The link-layer address of the node.
This variable contains the link-layer 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 platform_init_stage_three().
|
extern |
The null link-layer address.
This variable contains the null link-layer 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.