[riot-notifications] [RIOT-OS/RIOT] gnrc_netif: check all required options on initialization (#10532)

Marian Buschsieweke notifications at github.com
Thu Jan 17 14:04:31 CET 2019


maribu commented on this pull request.



> @@ -1156,6 +1156,99 @@ static void _configure_netdev(netdev_t *dev)
 #endif
 }
 
+#ifdef DEVELHELP
+/* checks if a device supports all required options and functions */
+static void _test_options(gnrc_netif_t *netif)
+{
+#if (GNRC_NETIF_L2ADDR_MAXLEN > 0) || GNRC_IPV6_NIB_CONF_6LN

(To elaborate on that: Murdock complains that `dummy_addr` is in many cases declared, but not used. I think the new `#if` ... `#else` magic I suggest should only declare it when it is actually used - but I did not check it.)

-- 
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/10532#discussion_r248661520
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190117/b979b21d/attachment-0001.html>


More information about the notifications mailing list