[riot-notifications] [RIOT-OS/RIOT] net/gnrc/ipv6: move gnrc_util_conf_prefix() to common code (#16672)

benpicco notifications at github.com
Thu Jul 22 17:06:39 CEST 2021

@benpicco commented on this pull request.

> +extern "C" {
+ * @brief   Configures a prefix delegation lease that is provided by the server.
+ *
+ * @param[in] netif     Network interface the prefix delegation was for.
+ * @param[in] pfx       Prefix for the prefix delegation.
+ * @param[in] pfx_len   Length of @p pfx in bits.
+ * @param[in] valid     Valid lifetime of the prefix delegation.
+ * @param[in] pref      Preferred lifetime of the prefix delegation.
+ * @param[in] tentative Add new prefix as tentative.
+ */
+void gnrc_util_conf_prefix(gnrc_netif_t *netif, const ipv6_addr_t *pfx,
+                           unsigned pfx_len, uint32_t valid,
+                           uint32_t pref, bool tentative);

Not sure about the `tentative` parameter.
DHCPv6 adds the prefix as tentative and it becomes valid on it's own.
UHCP adds it as valid, when adding it as tentative it stays tentative.

To keep existing behavior, I added this parameter. 

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210722/46c72800/attachment.htm>

More information about the notifications mailing list