46 #ifndef UIP_DS6_NEIGHBOR_H_
47 #define UIP_DS6_NEIGHBOR_H_
50 #include "net/nbr-table.h"
53 #include "net/nbr-table.h"
55 #if UIP_CONF_IPV6_QUEUE_PKT
56 #include "net/ip/uip-packetqueue.h"
61 #define NBR_INCOMPLETE 0
62 #define NBR_REACHABLE 1
67 NBR_TABLE_DECLARE(ds6_neighbors);
77 #if UIP_CONF_IPV6_QUEUE_PKT
78 struct uip_packetqueue_handle packethandle;
79 #define UIP_DS6_NBR_PACKET_LIFETIME CLOCK_SECOND * 4
83 void uip_ds6_neighbors_init(
void);
87 uint8_t isrouter, uint8_t state);
90 const uip_ipaddr_t *uip_ds6_nbr_get_ipaddr(
const uip_ds6_nbr_t *nbr);
91 uip_ds6_nbr_t *uip_ds6_nbr_lookup(
const uip_ipaddr_t *ipaddr);
93 uip_ipaddr_t *uip_ds6_nbr_ipaddr_from_lladdr(
const uip_lladdr_t *lladdr);
94 const uip_lladdr_t *uip_ds6_nbr_lladdr_from_ipaddr(
const uip_ipaddr_t *ipaddr);
95 void uip_ds6_link_neighbor_callback(
int status,
int numtx);
96 void uip_ds6_neighbor_periodic(
void);
97 int uip_ds6_nbr_num(
void);
Second timer library header file.
Header file for the uIP TCP/IP stack.
Network interface and stateless autoconfiguration (RFC 4862)
struct uip_ds6_nbr uip_ds6_nbr_t
An entry in the nbr cache.
uip_ds6_nbr_t * uip_ds6_get_least_lifetime_neighbor(void)
This searches inside the neighbor table for the neighbor that is about to expire the next...
uip_ds6_nbr_t * uip_ds6_nbr_add(const uip_ipaddr_t *ipaddr, const uip_lladdr_t *lladdr, uint8_t isrouter, uint8_t state)
Neighbor Cache basic routines.
An entry in the nbr cache.