[riot-notifications] [RIOT-OS/RIOT] gnrc/netif: add gnrc_netif_ipv6_wait_for_global_address() (#16824)

Martine Lenders notifications at github.com
Thu Sep 16 14:38:09 CEST 2021


@miri64 commented on this pull request.



> +static void _netif_bus_attach_and_subscribe(gnrc_netif_t *netif, msg_bus_entry_t *sub)
+{
+    msg_bus_t *bus = gnrc_netif_get_bus(netif, GNRC_NETIF_BUS_IPV6);
+    msg_bus_attach(bus, sub);
+    msg_bus_subscribe(sub, GNRC_IPV6_EVENT_ADDR_VALID);
+}

Can you please provide your reasoning for going for my first suggestion? After thinking about it, I think I like my alternative more.

-- 
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/16824#discussion_r710075939
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210916/b70fd87f/attachment-0001.htm>


More information about the notifications mailing list