[riot-notifications] [RIOT-OS/RIOT] dhcpv6_relay: initial import of a lightweight DHCPv6 relay agent (#16606)

Martine Lenders notifications at github.com
Tue Jul 27 23:30:25 CEST 2021


@miri64 commented on this pull request.



> +{
+    if (IS_USED(MODULE_AUTO_INIT_DHCPV6_RELAY)) {
+        int16_t netif = _only_one_netif();
+        if (netif > 0) {
+            if (IS_USED(MODULE_EVENT_THREAD)) {
+                dhcpv6_relay_init(EVENT_PRIO_LOWEST, netif, netif);
+            }
+            else {
+                thread_create(_auto_init_stack, ARRAY_SIZE(_auto_init_stack),
+                              AUTO_INIT_PRIO, THREAD_CREATE_STACKTEST,
+                              _dhcpv6_relay_auto_init_thread,
+                              (void *)(intptr_t)netif, "dhcpv6_relay");
+            }
+        }
+        else {
+            LOG_WARNING("DHCPv6 relay: auto init failed, more than 1 interface\n");

It isn't this is why this warning is here: if there is more than one interface, there is no automated way to determine which interface is upstream (towards the server) and which is downstream (towards the client). So the user needs to manually bootstrap.

-- 
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/16606#discussion_r677814097
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210727/53d3bc89/attachment.htm>


More information about the notifications mailing list