[riot-notifications] [RIOT-OS/RIOT] sys/net/dhcpv6: Add IA_NA support to the DHCPv6 client (#16228)

Martine Lenders notifications at github.com
Wed Aug 11 19:04:52 CEST 2021


@miri64 commented on this pull request.



> +#ifndef CONFIG_DHCPV6_CLIENT_ADDRS_NUMOF
+#if defined(MODULE_DHCPV6_CLIENT_IA_NA) || defined(DOXYGEN)
+#define CONFIG_DHCPV6_CLIENT_ADDRS_NUMOF (1)
+#else
+#define CONFIG_DHCPV6_CLIENT_ADDRS_NUMOF (0)
+#endif
+#endif

And remove both the configurability and the `CONFIG_` prefix from this and make it dependent on `CONFIG_DHCPV6_CLIENT_ADDR_LEASE_MAX`:

```suggestion
#if defined(MODULE_DHCPV6_CLIENT_IA_NA) || defined(DOXYGEN)
#define DHCPV6_CLIENT_ADDRS_NUMOF ((int)(CONFIG_DHCPV6_CLIENT_ADDR_LEASE_MAX))
#else
#define DHCPV6_CLIENT_ADDRS_NUMOF (0)
#endif
```

-- 
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/16228#pullrequestreview-727733789
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210811/33de117f/attachment.htm>


More information about the notifications mailing list