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

Martine Lenders notifications at github.com
Tue Jul 13 18:31:33 CEST 2021


@miri64 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)

Since this comes from `gnrc_icmpv6_echo`, there is no IPv4 support (yet). But good idea, to make the signature protocol independent. @benpicco what do you say? Making it protocol independent and adding a warning in the doc should suffice for now. IPv4 support can be added later.

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


More information about the notifications mailing list