[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:33:18 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");

Sure I could just assume the topology, based on some network interface parameters, but I rather would not.

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


More information about the notifications mailing list