[riot-notifications] [RIOT-OS/RIOT] gnrc/nib: add NIB event bus (#14022)

benpicco notifications at github.com
Tue May 12 13:15:22 CEST 2020


@benpicco commented on this pull request.



> @@ -288,6 +288,19 @@ enum {
     GNRC_IPV6_NIB_ROUTE_INFO_TYPE_NSC,
 };
 
+/**
+ * @brief   Types for GNRC_NETIF_BUS_NIB per-interface message bus
+ */
+typedef enum {
+    /**
+     * @brief   Address registration successful
+     *
+     * The Address registration with the boarder router was successful.
+     * The node now has a global prefix.
+     */
+    GNRC_IPV6_NIB_EVENT_REG_SUCCESS,

> Maybe, to also to be able to use this with [address validation in classic DAD](https://github.com/RIOT-OS/RIOT/blob/master/sys/net/gnrc/network_layer/ipv6/nib/_nib-slaac.c#L212-L213), rescope the event to `GNRC_IPV6_NIB_EVENT_ADDR_VALID`?

Sounds good!

> Then this can also be used for the link-local addresses, which [with 6Lo-ND are always assumed to be valid](https://github.com/RIOT-OS/RIOT/blob/master/sys/net/gnrc/network_layer/ipv6/nib/_nib-slaac.c#L75-L79).

Should those then also generate an event?
I'd then add a pointer to the address as message payload so the receiver can check which address just became valid.


-- 
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/14022#discussion_r423653375
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200512/ffd0a1eb/attachment-0001.htm>


More information about the notifications mailing list