[riot-notifications] [RIOT-OS/RIOT] netutils: add netutil_parse_hostname() (#16634)

Erik Ekman notifications at github.com
Tue Jul 13 15:44:30 CEST 2021


@yarrick commented on this pull request.



> +#include "net/utils.h"
+#ifdef MODULE_SOCK_DNS
+#include "net/sock/dns.h"
+#endif
+
+/* get the next netif, returns true if there are more */
+static bool _netif_get(netif_t **current_netif)
+{
+    netif_t *netif = *current_netif;
+    netif = netif_iter(netif);
+
+    *current_netif = netif;
+    return netif_iter(netif);
+}
+
+int netutils_parse_hostname(const char *hostname, ipv6_addr_t *addr, netif_t **netif)

Otherwise maybe add v6 or similar somewhere in the name to make it clearer.

-- 
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/16634#discussion_r668777462
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210713/9ed48911/attachment.htm>


More information about the notifications mailing list