[riot-notifications] [RIOT-OS/RIOT] gnrc_dhcpv6_client_6lbr: choose downstream if as !upstream (#16530)

benpicco notifications at github.com
Tue Jun 15 12:57:51 CEST 2021


So how about 

```C
static void _configure_dhcpv6_client(void)
{
    gnrc_netif_t *netif = NULL;
    gnrc_netif_t *upstream = _find_upstream_netif();
    while ((netif = gnrc_netif_iter(netif))) {
        if (IS_USED(MODULE_GNRC_DHCPV6_CLIENT_6LBR)
            && !gnrc_netif_is_6lo(netif)) {
            continue;
        }
        if (netif != upstream) {
            dhcpv6_client_req_ia_pd(netif->pid, 64U);
        }
    }
}
```

and renaming `gnrc_dhcpv6_client_6lbr` -> `gnrc_dhcpv6_client_greedy` with `gnrc_dhcpv6_client_6lbr` remaining as a sub-module that pulls in `gnrc_dhcpv6_client_greedy` (or `gnrc_dhcpv6_client_router`)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16530#issuecomment-861400974
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210615/6d88447b/attachment.htm>


More information about the notifications mailing list