<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/3839#discussion_r39438435">sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c</a>:</p>
<pre style='color:#555'>> @@ -56,6 +56,22 @@ void gnrc_sixlowpan_nd_init(gnrc_ipv6_netif_t *iface)
>      gnrc_ndp_internal_send_rtr_sol(iface->pid, NULL);
>  }
>  
> +void gnrc_sixlowpan_nd_router_set_rtr_adv(gnrc_ipv6_netif_t *netif, bool enable)
> +{
> +    ipv6_addr_t all_routers = IPV6_ADDR_ALL_ROUTERS_LINK_LOCAL;
> +
> +    if (enable) {
> +        netif->flags |= GNRC_IPV6_NETIF_FLAGS_RTR_ADV;
> +        gnrc_ipv6_netif_add_addr(netif->pid, &all_routers, 128,
</pre>
<p>Maybe you should at first check the return value of <code>gnrc_ipv6_netif_add_addr</code>, before you set the <code>netif->flags</code> in case there is no space left to add a new ip address..</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/RIOT-OS/RIOT/pull/3839/files#r39438435">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AEn7YK5qUtMmp3CMQV8rvuX4e1klP_0Mks5oxxyogaJpZM4F9FMa.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/RIOT-OS/RIOT/pull/3839/files#r39438435"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>