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);
74 #if UIP_ND6_SEND_NA || UIP_ND6_SEND_RA
79 #if UIP_CONF_IPV6_QUEUE_PKT
80 struct uip_packetqueue_handle packethandle;
81 #define UIP_DS6_NBR_PACKET_LIFETIME CLOCK_SECOND * 4
85 void uip_ds6_neighbors_init(
void);
90 uint8_t isrouter, uint8_t state,
91 nbr_table_reason_t reason,
void *data);
97 uip_ipaddr_t *uip_ds6_nbr_ipaddr_from_lladdr(
const uip_lladdr_t *lladdr);
99 void uip_ds6_link_neighbor_callback(
int status,
int numtx);
100 void uip_ds6_neighbor_periodic(
void);
101 int uip_ds6_nbr_num(
void);
static uip_ipaddr_t ipaddr
Pointer to prefix information option in uip_buf.
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...
Header file for IPv6-related data structures.
An entry in the nbr cache.
Second timer library header file.
static uip_ds6_nbr_t * nbr
Pointer to llao option in uip_buf.
struct uip_ds6_nbr uip_ds6_nbr_t
An entry in the nbr cache.
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)
Neighbor Cache basic routines.
Header file for the uIP TCP/IP stack.