[riot-notifications] [RIOT] ndp: pio - check if prefix has been processed before (#3836)

Martine Lenders notifications at github.com
Mon Sep 14 13:06:16 CEST 2015


>      for (int i = 0; i < GNRC_IPV6_NETIF_ADDR_NUMOF; i++) {
> -        if (_pio_from_iface_addr(&tmp, &ipv6_iface->addrs[i], pkt)) {
> +        /* skip if prefix has been processed already */
> +        processed_before = false;
> +        for (int j = 0; j < i; j++) {
> +            if ((processed_before =
> +                _check_prefixes(&ipv6_iface->addrs[i], &ipv6_iface->addrs[j]))) {
> +                break;
> +            }
> +        }
> +

```C
if (processed_before) {
    continue;
}
```
?

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


More information about the notifications mailing list