Contiki-NG
|
IPv6 Neighbor cache (link-layer/IPv6 address mapping) More...
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include "lib/list.h"
#include "net/link-stats.h"
#include "net/linkaddr.h"
#include "net/packetbuf.h"
#include "net/ipv6/uip-ds6.h"
#include "net/ipv6/uip-ds6-nbr.h"
#include "net/ipv6/uip-nd6.h"
#include "net/routing/routing.h"
#include "sys/log.h"
Go to the source code of this file.
Functions | |
uip_ds6_nbr_t * | uip_ds6_nbr_add (const uip_ipaddr_t *ipaddr, const uip_lladdr_t *lladdr, uint8_t isrouter, uint8_t state, nbr_table_reason_t reason, void *data) |
Add a neighbor cache for a specified IPv6 address, which is associated with a specified link-layer address. More... | |
int | uip_ds6_nbr_rm (uip_ds6_nbr_t *nbr) |
Remove a neighbor cache. More... | |
int | uip_ds6_nbr_update_ll (uip_ds6_nbr_t **nbr, const uip_lladdr_t *new_ll_addr) |
Update the link-layer address associated with an IPv6 address. More... | |
const uip_ipaddr_t * | uip_ds6_nbr_get_ipaddr (const uip_ds6_nbr_t *nbr) |
Get an IPv6 address of a neighbor cache. More... | |
const uip_lladdr_t * | uip_ds6_nbr_get_ll (const uip_ds6_nbr_t *nbr) |
Get the link-layer address associated with a specified nbr cache. More... | |
int | uip_ds6_nbr_num (void) |
Return the number of neighbor caches. More... | |
uip_ds6_nbr_t * | uip_ds6_nbr_head (void) |
Get the first neighbor cache in nbr_table. More... | |
uip_ds6_nbr_t * | uip_ds6_nbr_next (uip_ds6_nbr_t *nbr) |
Get the next neighbor cache of a specified one. More... | |
uip_ds6_nbr_t * | uip_ds6_nbr_lookup (const uip_ipaddr_t *ipaddr) |
Get the neighbor cache associated with a specified IPv6 address. More... | |
uip_ds6_nbr_t * | uip_ds6_nbr_ll_lookup (const uip_lladdr_t *lladdr) |
Get the neighbor cache associated with a specified link-layer address. More... | |
uip_ipaddr_t * | uip_ds6_nbr_ipaddr_from_lladdr (const uip_lladdr_t *lladdr) |
Get an IPv6 address associated with a specified link-layer address. More... | |
const uip_lladdr_t * | uip_ds6_nbr_lladdr_from_ipaddr (const uip_ipaddr_t *ipaddr) |
Get the link-layer address associated with a specified IPv6 address. More... | |
void | uip_ds6_link_callback (int status, int numtx) |
The callback function to update link-layer stats in a neighbor cache. More... | |
IPv6 Neighbor cache (link-layer/IPv6 address mapping)
Definition in file uip-ds6-nbr.c.