[riot-notifications] [RIOT] gnrc_ndp: add support for address-less link-layers (#3628)

Oleg Hahm notifications at github.com
Tue Sep 1 17:42:06 CEST 2015


> +                }
> +                else if (l2tgt_changed) {
> +                    gnrc_ndp_internal_set_state(nc_entry, GNRC_IPV6_NC_STATE_STALE);
> +                }
> +
> +                if (nbr_adv->flags & NDP_NBR_ADV_FLAGS_R) {
> +                    nc_entry->flags |= GNRC_IPV6_NC_IS_ROUTER;
> +                }
> +                else {
> +                    nc_entry->flags &= ~GNRC_IPV6_NC_IS_ROUTER;
> +                    /* TODO: update FIB */
> +                }
> +            }
> +            else if (l2tgt_changed &&
> +                     gnrc_ipv6_nc_get_state(nc_entry) == GNRC_IPV6_NC_STATE_REACHABLE) {
> +                gnrc_ndp_internal_set_state(nc_entry, GNRC_IPV6_NC_STATE_STALE);
>              }
>          }
>      }

this function could also benefit from being split up, but that's a different topic.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3628/files#r38434308
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150901/a6473871/attachment.html>


More information about the notifications mailing list