Contiki-NG
|
Code managing id<->mac address<->IPv6 address mapping, and doing this for different deployment scenarios: Cooja, Nodes, Indriya or Twist testbedsMore...
#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. More... | |
int | deployment_node_count (void) |
Get the number of nodes for the deployment (length of mapping table) More... | |
uint16_t | deployment_id_from_lladdr (const linkaddr_t *lladdr) |
Get node ID from a link-layer address, from the deployment mapping table. More... | |
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. More... | |
uint16_t | deployment_id_from_iid (const uip_ipaddr_t *ipaddr) |
Get node ID from the IID of an IPv6 address. More... | |
void | deployment_iid_from_id (uip_ipaddr_t *ipaddr, uint16_t id) |
Get IPv6 IID from node IDs. More... | |
uint16_t | deployment_id_from_index (uint16_t index) |
Get node ID from index in mapping table. More... | |
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.