77#include "lib/random.h"
81#define LOG_MODULE "IPv6 NDP"
82#define LOG_LEVEL LOG_LEVEL_IPV6
90#define UIP_ND6_RS_BUF ((uip_nd6_rs *)UIP_ICMP_PAYLOAD)
91#define UIP_ND6_RA_BUF ((uip_nd6_ra *)UIP_ICMP_PAYLOAD)
92#define UIP_ND6_NS_BUF ((uip_nd6_ns *)UIP_ICMP_PAYLOAD)
93#define UIP_ND6_NA_BUF ((uip_nd6_na *)UIP_ICMP_PAYLOAD)
96#define ND6_OPT(opt) ((unsigned char *)(UIP_ICMP_PAYLOAD + (opt)))
97#define ND6_OPT_HDR_BUF(opt) ((uip_nd6_opt_hdr *)ND6_OPT(opt))
98#define ND6_OPT_PREFIX_BUF(opt) ((uip_nd6_opt_prefix_info *)ND6_OPT(opt))
99#define ND6_OPT_MTU_BUF(opt) ((uip_nd6_opt_mtu *)ND6_OPT(opt))
100#define ND6_OPT_RDNSS_BUF(opt) ((uip_nd6_opt_dns *)ND6_OPT(opt))
103#if UIP_ND6_SEND_NS || UIP_ND6_SEND_NA || UIP_ND6_SEND_RA || !UIP_CONF_ROUTER
104static uint16_t nd6_opt_offset;
110#if UIP_ND6_SEND_NS || UIP_ND6_SEND_RA || !UIP_CONF_ROUTER
118#if (!UIP_CONF_ROUTER || UIP_ND6_SEND_RA)
122#if UIP_ND6_SEND_NA || UIP_ND6_SEND_RA || !UIP_CONF_ROUTER
139create_llao(uint8_t *llao, uint8_t type)
141 llao[UIP_ND6_OPT_TYPE_OFFSET] = type;
177 LOG_INFO(
"Received NS from ");
181 LOG_INFO_(
" with target address ");
182 LOG_INFO_6ADDR((uip_ipaddr_t *) (&UIP_ND6_NS_BUF->tgtipaddr));
186#if UIP_CONF_IPV6_CHECKS
190 LOG_ERR(
"NS received is bad\n");
197 nd6_opt_offset = UIP_ND6_NS_LEN;
198 while(uip_l3_icmp_hdr_len + nd6_opt_offset + UIP_ND6_OPT_HDR_LEN <
uip_len) {
199#if UIP_CONF_IPV6_CHECKS
200 if(ND6_OPT_HDR_BUF(nd6_opt_offset)->len == 0) {
201 LOG_ERR(
"NS received is bad\n");
205 switch (ND6_OPT_HDR_BUF(nd6_opt_offset)->type) {
206 case UIP_ND6_OPT_SLLAO:
207 if(uip_l3_icmp_hdr_len + nd6_opt_offset +
209 LOG_ERR(
"Insufficient data for NS SLLAO option\n");
213#if UIP_CONF_IPV6_CHECKS
216 LOG_ERR(
"NS received is bad\n");
220 uip_lladdr_t lladdr_aligned;
225 0, NBR_STALE, NBR_TABLE_REASON_IPV6_ND, NULL);
234 (
const uip_lladdr_t *)&lladdr_aligned)
239 nbr->state = NBR_STALE;
242 nbr->state = NBR_STALE;
246#if UIP_CONF_IPV6_CHECKS
251 LOG_WARN(
"ND option not supported in NS");
254 nd6_opt_offset += (ND6_OPT_HDR_BUF(nd6_opt_offset)->len << 3);
257 addr = uip_ds6_addr_lookup(&UIP_ND6_NS_BUF->tgtipaddr);
261#if UIP_ND6_DEF_MAXDADNS > 0
262#if UIP_CONF_IPV6_CHECKS
264 LOG_ERR(
"NS received is bad\n");
271 flags = UIP_ND6_NA_FLAG_OVERRIDE;
282#if UIP_CONF_IPV6_CHECKS
283 if(uip_ds6_is_my_addr(&
UIP_IP_BUF->srcipaddr)) {
290 LOG_ERR(
"NS received is bad\n");
299 flags = UIP_ND6_NA_FLAG_SOLICITED | UIP_ND6_NA_FLAG_OVERRIDE;
307 flags = UIP_ND6_NA_FLAG_SOLICITED | UIP_ND6_NA_FLAG_OVERRIDE;
310#if UIP_CONF_IPV6_CHECKS
311 LOG_ERR(
"NS received is bad\n");
323 flags = flags | UIP_ND6_NA_FLAG_ROUTER;
336 UIP_ND6_NA_BUF->flagsreserved = flags;
337 memcpy(&UIP_ND6_NA_BUF->tgtipaddr, &
addr->ipaddr,
sizeof(uip_ipaddr_t));
339 create_llao(&
uip_buf[uip_l3_icmp_hdr_len + UIP_ND6_NA_LEN],
348 LOG_INFO(
"Sending NA to ");
352 LOG_INFO_(
" with target address ");
353 LOG_INFO_6ADDR(&UIP_ND6_NA_BUF->tgtipaddr);
384 UIP_ND6_NS_BUF->reserved = 0;
390 if(!(uip_ds6_is_my_addr(tgt))) {
397 LOG_ERR(
"Dropping NS due to no suitable source address\n");
403 create_llao(&
uip_buf[uip_l3_icmp_hdr_len + UIP_ND6_NS_LEN],
410 UIP_IP_BUF->len[1] = UIP_ICMPH_LEN + UIP_ND6_NS_LEN;
411 uip_len = UIP_IPH_LEN + UIP_ICMPH_LEN + UIP_ND6_NS_LEN;
418 LOG_INFO(
"Sending NS to ");
422 LOG_INFO_(
" with target address ");
453 uint8_t is_solicited;
455 uip_lladdr_t lladdr_aligned;
457 LOG_INFO(
"Received NA from ");
461 LOG_INFO_(
" with target address ");
462 LOG_INFO_6ADDR((uip_ipaddr_t *) (&UIP_ND6_NA_BUF->tgtipaddr));
471 is_router = ((UIP_ND6_NA_BUF->flagsreserved & UIP_ND6_NA_FLAG_ROUTER));
473 ((UIP_ND6_NA_BUF->flagsreserved & UIP_ND6_NA_FLAG_SOLICITED));
475 ((UIP_ND6_NA_BUF->flagsreserved & UIP_ND6_NA_FLAG_OVERRIDE));
477#if UIP_CONF_IPV6_CHECKS
482 LOG_ERR(
"NA received is bad\n");
488 nd6_opt_offset = UIP_ND6_NA_LEN;
490 while(uip_l3_icmp_hdr_len + nd6_opt_offset <
uip_len) {
491#if UIP_CONF_IPV6_CHECKS
492 if(ND6_OPT_HDR_BUF(nd6_opt_offset)->len == 0) {
493 LOG_ERR(
"NA received is bad\n");
497 switch (ND6_OPT_HDR_BUF(nd6_opt_offset)->type) {
498 case UIP_ND6_OPT_TLLAO:
499 nd6_opt_llao = (uint8_t *)ND6_OPT_HDR_BUF(nd6_opt_offset);
502 LOG_WARN(
"ND option not supported in NA\n");
505 nd6_opt_offset += (ND6_OPT_HDR_BUF(nd6_opt_offset)->len << 3);
507 addr = uip_ds6_addr_lookup(&UIP_ND6_NA_BUF->tgtipaddr);
510#if UIP_ND6_DEF_MAXDADNS > 0
515 LOG_ERR(
"NA received is bad\n");
518 const uip_lladdr_t *lladdr;
537 (
const uip_lladdr_t *)&lladdr_aligned) < 0) {
547 nbr->state = NBR_STALE;
549 nbr->isrouter = is_router;
551 if(!is_override && is_llchange) {
552 if(
nbr->state == NBR_REACHABLE) {
553 nbr->state = NBR_STALE;
561 if(is_override || !is_llchange ||
nd6_opt_llao == NULL) {
565 (
const uip_lladdr_t *)&lladdr_aligned)
577 if(
nbr->isrouter && !is_router) {
580 uip_ds6_defrt_rm(
defrt);
583 nbr->isrouter = is_router;
586#if UIP_CONF_IPV6_QUEUE_PKT
594 if(uip_packetqueue_buflen(&
nbr->packethandle) != 0) {
595 uip_len = uip_packetqueue_buflen(&
nbr->packethandle);
597 uip_packetqueue_free(&
nbr->packethandle);
616 LOG_INFO(
"Received RS from ");
624#if UIP_CONF_IPV6_CHECKS
631 LOG_ERR(
"RS received is bad\n");
638 nd6_opt_offset = UIP_ND6_RS_LEN;
641 while(uip_l3_icmp_hdr_len + nd6_opt_offset <
uip_len) {
642#if UIP_CONF_IPV6_CHECKS
643 if(ND6_OPT_HDR_BUF(nd6_opt_offset)->len == 0) {
644 LOG_ERR(
"RS received is bad\n");
648 switch (ND6_OPT_HDR_BUF(nd6_opt_offset)->type) {
649 case UIP_ND6_OPT_SLLAO:
650 nd6_opt_llao = (uint8_t *)ND6_OPT_HDR_BUF(nd6_opt_offset);
653 LOG_WARN(
"ND option not supported in RS\n");
656 nd6_opt_offset += (ND6_OPT_HDR_BUF(nd6_opt_offset)->len << 3);
660#if UIP_CONF_IPV6_CHECKS
662 LOG_ERR(
"RS received is bad\n");
666 uip_lladdr_t lladdr_aligned;
671 0, NBR_STALE, NBR_TABLE_REASON_IPV6_ND, NULL);
684 0, NBR_STALE, NBR_TABLE_REASON_IPV6_ND, NULL);
688 nbr->reachable = nbr_data.reachable;
689 nbr->sendns = nbr_data.sendns;
690 nbr->nscount = nbr_data.nscount;
694#if UIP_CONF_IPV6_CHECKS
700 uip_ds6_send_ra_sollicited();
709uip_nd6_ra_output(
const uip_ipaddr_t * dest)
729 UIP_ND6_RA_BUF->cur_ttl =
uip_ds6_if.cur_hop_limit;
731 UIP_ND6_RA_BUF->flags_reserved =
732 (UIP_ND6_M_FLAG << 7) | (UIP_ND6_O_FLAG << 6);
734 UIP_ND6_RA_BUF->router_lifetime =
uip_htons(UIP_ND6_ROUTER_LIFETIME);
737 UIP_ND6_RA_BUF->reachable_time = 0;
738 UIP_ND6_RA_BUF->retrans_timer = 0;
740 uip_len = UIP_IPH_LEN + UIP_ICMPH_LEN + UIP_ND6_RA_LEN;
741 nd6_opt_offset = UIP_ND6_RA_LEN;
747 if((prefix->isused) && (prefix->advertise)) {
748 ND6_OPT_PREFIX_BUF(nd6_opt_offset)->type = UIP_ND6_OPT_PREFIX_INFO;
749 ND6_OPT_PREFIX_BUF(nd6_opt_offset)->len = UIP_ND6_OPT_PREFIX_INFO_LEN / 8;
750 ND6_OPT_PREFIX_BUF(nd6_opt_offset)->preflen = prefix->length;
751 ND6_OPT_PREFIX_BUF(nd6_opt_offset)->flagsreserved1 = prefix->l_a_reserved;
752 ND6_OPT_PREFIX_BUF(nd6_opt_offset)->validlt = uip_htonl(prefix->vlifetime);
753 ND6_OPT_PREFIX_BUF(nd6_opt_offset)->preferredlt = uip_htonl(prefix->plifetime);
754 ND6_OPT_PREFIX_BUF(nd6_opt_offset)->reserved2 = 0;
755 uip_ipaddr_copy(&(ND6_OPT_PREFIX_BUF(nd6_opt_offset)->prefix), &(prefix->ipaddr));
756 nd6_opt_offset += UIP_ND6_OPT_PREFIX_INFO_LEN;
757 uip_len += UIP_ND6_OPT_PREFIX_INFO_LEN;
762 create_llao((uint8_t *)ND6_OPT_HDR_BUF(nd6_opt_offset), UIP_ND6_OPT_SLLAO);
768 ND6_OPT_MTU_BUF(nd6_opt_offset)->type = UIP_ND6_OPT_MTU;
769 ND6_OPT_MTU_BUF(nd6_opt_offset)->len = UIP_ND6_OPT_MTU_LEN >> 3;
770 ND6_OPT_MTU_BUF(nd6_opt_offset)->reserved = 0;
772 ND6_OPT_MTU_BUF(nd6_opt_offset)->mtu = uip_htonl(1500);
774 uip_len += UIP_ND6_OPT_MTU_LEN;
775 nd6_opt_offset += UIP_ND6_OPT_MTU_LEN;
780 uip_ipaddr_t *ip = &ND6_OPT_RDNSS_BUF(nd6_opt_offset)->ip;
781 uip_ipaddr_t *dns = NULL;
782 ND6_OPT_RDNSS_BUF(nd6_opt_offset)->type = UIP_ND6_OPT_RDNSS;
783 ND6_OPT_RDNSS_BUF(nd6_opt_offset)->reserved = 0;
786 ND6_OPT_RDNSS_BUF(nd6_opt_offset)->lifetime -=
clock_seconds();
792 ND6_OPT_RDNSS_BUF(nd6_opt_offset)->len = UIP_ND6_OPT_RDNSS_LEN + (i << 1);
793 LOG_INFO(
"%d nameservers reported\n", i);
794 uip_len += ND6_OPT_RDNSS_BUF(nd6_opt_offset)->len << 3;
795 nd6_opt_offset += ND6_OPT_RDNSS_BUF(nd6_opt_offset)->len << 3;
806 LOG_INFO(
"Sending RA to ");
832 UIP_IP_BUF->len[1] = UIP_ICMPH_LEN + UIP_ND6_RS_LEN;
833 uip_len = uip_l3_icmp_hdr_len + UIP_ND6_RS_LEN;
838 create_llao(&
uip_buf[uip_l3_icmp_hdr_len + UIP_ND6_RS_LEN],
846 LOG_INFO(
"Sending RS to ");
866 uip_lladdr_t lladdr_aligned;
868 LOG_INFO(
"Received RA from ");
875#if UIP_CONF_IPV6_CHECKS
879 LOG_ERR(
"RA received is bad");
884 if(UIP_ND6_RA_BUF->cur_ttl != 0) {
885 uip_ds6_if.cur_hop_limit = UIP_ND6_RA_BUF->cur_ttl;
886 LOG_INFO(
"uip_ds6_if.cur_hop_limit %u\n",
uip_ds6_if.cur_hop_limit);
889 if(UIP_ND6_RA_BUF->reachable_time != 0) {
891 uip_ntohl(UIP_ND6_RA_BUF->reachable_time)) {
892 uip_ds6_if.base_reachable_time = uip_ntohl(UIP_ND6_RA_BUF->reachable_time);
896 if(UIP_ND6_RA_BUF->retrans_timer != 0) {
897 uip_ds6_if.retrans_timer = uip_ntohl(UIP_ND6_RA_BUF->retrans_timer);
901 nd6_opt_offset = UIP_ND6_RA_LEN;
902 while(uip_l3_icmp_hdr_len + nd6_opt_offset <
uip_len) {
903 if(ND6_OPT_HDR_BUF(nd6_opt_offset)->len == 0) {
904 LOG_ERR(
"RA received is bad");
907 switch (ND6_OPT_HDR_BUF(nd6_opt_offset)->type) {
908 case UIP_ND6_OPT_SLLAO:
909 LOG_DBG(
"Processing SLLAO option in RA\n");
910 nd6_opt_llao = (uint8_t *) ND6_OPT_HDR_BUF(nd6_opt_offset);
918 1, NBR_STALE, NBR_TABLE_REASON_IPV6_ND, NULL);
925 nbr->state = NBR_STALE;
931 (
const uip_lladdr_t *)&lladdr_aligned) < 0) {
935 nbr->state = NBR_STALE;
940 case UIP_ND6_OPT_MTU:
941 LOG_DBG(
"Processing MTU option in RA\n");
945 case UIP_ND6_OPT_PREFIX_INFO:
946 LOG_DBG(
"Processing PREFIX option in RA\n");
971 uip_ds6_prefix_rm(prefix);
974 prefix->isinfinite = 1;
977 LOG_DBG(
"Updating timer of prefix ");
978 LOG_DBG_6ADDR(&prefix->ipaddr);
982 prefix->isinfinite = 0;
996 if((
addr != NULL) && (
addr->type == ADDR_AUTOCONF)) {
1002 LOG_DBG(
"Updating timer of address ");
1003 LOG_DBG_6ADDR(&
addr->ipaddr);
1004 LOG_DBG_(
" new value %lu\n",
1010 LOG_DBG(
"Updating timer of address ");
1011 LOG_DBG_6ADDR(&
addr->ipaddr);
1012 LOG_DBG_(
" new value %lu\n", (
unsigned long)(2 * 60 * 60));
1014 addr->isinfinite = 0;
1016 addr->isinfinite = 1;
1032 case UIP_ND6_OPT_RDNSS:
1033 LOG_DBG(
"Processing RDNSS option\n");
1034 uint8_t naddr = (ND6_OPT_RDNSS_BUF(nd6_opt_offset)->len - 1) / 2;
1035 uip_ipaddr_t *ip = (uip_ipaddr_t *)(&ND6_OPT_RDNSS_BUF(nd6_opt_offset)->ip);
1036 LOG_DBG(
"got %d nameservers\n", naddr);
1037 while(naddr-- > 0) {
1038 LOG_DBG(
"nameserver: ");
1040 LOG_DBG_(
" lifetime: %"PRIx32
"\n", uip_ntohl(ND6_OPT_RDNSS_BUF(nd6_opt_offset)->lifetime));
1047 LOG_ERR(
"ND option not supported in RA\n");
1050 nd6_opt_offset += (ND6_OPT_HDR_BUF(nd6_opt_offset)->len << 3);
1054 if(UIP_ND6_RA_BUF->router_lifetime != 0) {
1061 long)(uip_ntohs(UIP_ND6_RA_BUF->router_lifetime)));
1064 (
unsigned long)(uip_ntohs(UIP_ND6_RA_BUF->router_lifetime)));
1068 uip_ds6_defrt_rm(
defrt);
1072#if UIP_CONF_IPV6_QUEUE_PKT
1081 if(
nbr != NULL && uip_packetqueue_buflen(&
nbr->packethandle) != 0) {
1082 uip_len = uip_packetqueue_buflen(&
nbr->packethandle);
1084 uip_packetqueue_free(&
nbr->packethandle);
1098UIP_ICMP6_HANDLER(ns_input_handler,
ICMP6_NS, UIP_ICMP6_HANDLER_CODE_ANY,
1102UIP_ICMP6_HANDLER(na_input_handler,
ICMP6_NA, UIP_ICMP6_HANDLER_CODE_ANY,
1106#if UIP_CONF_ROUTER && UIP_ND6_SEND_RA
1107UIP_ICMP6_HANDLER(rs_input_handler,
ICMP6_RS, UIP_ICMP6_HANDLER_CODE_ANY,
1112UIP_ICMP6_HANDLER(ra_input_handler,
ICMP6_RA, UIP_ICMP6_HANDLER_CODE_ANY,
1130#if UIP_CONF_ROUTER && UIP_ND6_SEND_RA
unsigned long clock_seconds(void)
Get the current value of the platform seconds.
unsigned long stimer_remaining(struct stimer *t)
The time until the timer expires.
void stimer_set(struct stimer *t, unsigned long interval)
Set a timer.
void uip_nd6_ns_output(const uip_ipaddr_t *src, const uip_ipaddr_t *dest, uip_ipaddr_t *tgt)
Send a neighbor solicitation, send a Neighbor Advertisement.
#define uip_create_linklocal_allrouters_mcast(a)
set IP address a to the link local all-routers multicast address
uint32_t uip_nameserver_next_expiration(void)
Get next expiration time.
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.
#define uip_create_unspecified(a)
set IP address a to unspecified
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 ad...
uip_lladdr_t uip_lladdr
Host L2 address.
int uip_ds6_nbr_update_ll(uip_ds6_nbr_t **nbr_pp, const uip_lladdr_t *new_ll_addr)
Update the link-layer address associated with an IPv6 address.
#define uip_is_addr_unspecified(a)
Is IPv6 address a the unspecified address a is of type uip_ipaddr_t.
void uip_nameserver_update(const uip_ipaddr_t *nameserver, uint32_t lifetime)
Initialize the module variables.
#define UIP_ICMP_BUF
Direct access to ICMP, UDP, and TCP headers and payload, with implicit ext header offset (global uip_...
#define ICMP6_NS
Neighbor Solicitation.
#define UIP_LLADDR_LEN
802.15.4 address
#define NBR_INCOMPLETE
Possible states for the nbr cache entries.
int uip_ds6_nbr_rm(uip_ds6_nbr_t *nbr)
Remove a neighbor cache.
uip_ds6_nbr_t * uip_ds6_nbr_lookup(const uip_ipaddr_t *ipaddr)
Get the neighbor cache associated with a specified IPv6 address.
void uip_nd6_rs_output(void)
Neighbor Solicitation Processing.
#define uip_is_addr_mcast(a)
is address a multicast address, see RFC 4291 a is of type uip_ipaddr_t*
uip_ds6_addr_t * uip_ds6_addr_add(uip_ipaddr_t *ipaddr, unsigned long vlifetime, uint8_t type)
Add a unicast address to the interface.
#define ICMP6_NA
Neighbor advertisement.
#define UIP_ND6_INFINITE_LIFETIME
INFINITE lifetime.
void uip_nd6_init()
Initialise the uIP ND core.
#define UIP_STAT(s)
The uIP TCP/IP statistics.
int uip_ds6_dad_failed(uip_ds6_addr_t *addr)
Callback when DAD failed.
#define uip_create_solicited_node(a, b)
put in b the solicited node address corresponding to address a both a and b are of type uip_ipaddr_t*
#define ICMP6_RS
Router Solicitation.
#define UIP_ND6_OPT_LLAO_LEN
length of a ND6 LLAO option for default L2 type (e.g.
#define uip_is_addr_linklocal(a)
is addr (a) a link local unicast address, see RFC 4291 i.e.
#define uip_is_addr_solicited_node(a)
is addr (a) a solicited node multicast address, see RFC 4291 a is of type uip_ipaddr_t*
void uip_ds6_select_src(uip_ipaddr_t *src, uip_ipaddr_t *dst)
Source address selection, see RFC 3484.
#define UIP_NAMESERVER_INFINITE_LIFETIME
Infinite Lifetime indicator.
void uip_ds6_set_addr_iid(uip_ipaddr_t *ipaddr, const uip_lladdr_t *lladdr)
set the last 64 bits of an IP address based on the MAC address
uip_ds6_prefix_t uip_ds6_prefix_list[UIP_DS6_PREFIX_NB]
Prefix list.
void uip_icmp6_register_input_handler(uip_icmp6_input_handler_t *handler)
Register a handler which can handle a specific ICMPv6 message type.
uip_ipaddr_t * uip_nameserver_get(uint8_t num)
Get a Nameserver ip address given in RA.
#define UIP_ND6_HOP_LIMIT
HOP LIMIT to be used when sending ND messages (255)
#define ADDR_TENTATIVE
Possible states for the an address (RFC 4862)
#define ICMP6_RA
Router Advertisement.
uint16_t uip_nameserver_count(void)
Get the number of recorded name servers.
uip_ds6_netif_t uip_ds6_if
The single interface.
#define uip_create_linklocal_allnodes_mcast(a)
set IP address a to the link local all-nodes multicast address
uint32_t uip_ds6_compute_reachable_time(void)
Compute the reachable time based on base reachable time, see RFC 4861.
#define UIP_IP_BUF
Direct access to IPv6 header.
#define uip_ipaddr_copy(dest, src)
Copy an IP address from one place to another.
uint16_t uip_htons(uint16_t val)
Convert a 16-bit quantity from host byte order to network byte order.
#define uip_buf
Macro to access uip_aligned_buf as an array of bytes.
uint16_t uip_len
The length of the packet in the uip_buf buffer.
Header file for the logging system.
Unicast address structure.
An entry in the default router list.
The default nbr_table entry (when UIP_DS6_NBR_MULTI_IPV6_ADDRS is disabled), that implements nbr cach...
ND option prefix information.
Header file for IPv6-related data structures.
Header file for ICMPv6 message and error handing (RFC 4443)
uIP Name Server interface
static uip_ds6_nbr_t * nbr
Pointer to llao option in uip_buf.
void ra_input(void)
Process a Router Advertisement.
static uip_ipaddr_t ipaddr
Pointer to prefix information option in uip_buf.
static uip_ds6_defrt_t * defrt
Pointer to an interface address.
static uip_nd6_opt_prefix_info * nd6_opt_prefix_info
Pointer to a router list entry.
static int extract_lladdr_from_llao_aligned(uip_lladdr_t *dest)
Pointer to a prefix list entry.
static uint8_t * nd6_opt_llao
Offset from the end of the icmpv6 header to the option in uip_buf.
static uip_ds6_addr_t * addr
Pointer to a nbr cache entry.
Header file for IPv6 Neighbor discovery (RFC 4861)