![]() |
Contiki-NG
|
Code managing id<->mac address<->IPv6 address mapping, and doing this for different deployment scenarios: Cooja, Nodes, Indriya or Twist testbeds. More...
#include "contiki.h"#include "contiki-net.h"#include "deployment.h"#include "sys/node-id.h"#include <string.h>#include <stdio.h>Go to the source code of this file.
Functions | |
| void | deployment_init (void) |
| DEPLOYMENT_MAPPING: A table of struct id_mac that provides ID-MAC mapping for a deployment. | |
| int | deployment_node_count (void) |
| Get the number of nodes for the deployment (length of mapping table) | |
| uint16_t | deployment_id_from_lladdr (const linkaddr_t *lladdr) |
| Get node ID from a link-layer address, from the deployment mapping table. | |
| void | deployment_lladdr_from_id (linkaddr_t *lladdr, uint16_t id) |
| Get node link-layer address from a node ID, from the deployment mapping table. | |
| uint16_t | deployment_id_from_iid (const uip_ipaddr_t *ipaddr) |
| Get node ID from the IID of an IPv6 address. | |
| void | deployment_iid_from_id (uip_ipaddr_t *ipaddr, uint16_t id) |
| Get IPv6 IID from node IDs. | |
| uint16_t | deployment_id_from_index (uint16_t index) |
| Get node ID from index in mapping table. | |
Variables | |
| const struct id_mac | DEPLOYMENT_MAPPING [] |
| List of ID<->MAC mapping used for different deployments. | |
| static int | node_count = 0 |
| The number of nodes in the deployment. | |
Code managing id<->mac address<->IPv6 address mapping, and doing this for different deployment scenarios: Cooja, Nodes, Indriya or Twist testbeds.
Definition in file deployment.c.