Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 ML!PA Consulting GmbH
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
22#ifndef NET_UTILS_H
23#define NET_UTILS_H
24
25#include <stdint.h>
26#include <stddef.h>
27
28#include "net/ipv4/addr.h"
29#include "net/ipv6/addr.h"
30#include "net/netif.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
46int netutils_get_ipv4(ipv4_addr_t *addr, const char *hostname);
47
59int netutils_get_ipv6(ipv6_addr_t *addr, netif_t **netif, const char *hostname);
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif /* NET_UTILS_H */
int netutils_get_ipv6(ipv6_addr_t *addr, netif_t **netif, const char *hostname)
Parse an IPv6 address / hostname string.
int netutils_get_ipv4(ipv4_addr_t *addr, const char *hostname)
Parse an IPv4 address / hostname string.
IPv4 address type and helper functions definitions.
Definitions for IPv6 addresses.
Common network interface API definitions.
Network interface descriptor.
Definition netif.h:71
Data type to represent an IPv4 address.
Definition addr.h:53
Data type to represent an IPv6 address.
Definition addr.h:72