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

benpicco notifications at github.com
Tue May 12 14:16:15 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,

> If we just use the one from the interface array, can we be sure the address does not change between the posting of the event and the handling?

Not necessarily - under which conditions could a valid address change though?

If it's the application configuring a different address, we should get away with just documenting that corner case.
If this becomes a use-case, we can add sequence numbers, but I wouldn't want to add code just in case.

-- 
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_r423685380
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200512/43f8d513/attachment.htm>


More information about the notifications mailing list