1 /*
2 * Copyright (c) 2019 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6 #ifndef ZEPHYR_INCLUDE_POSIX_ARPA_INET_H_
7 #define ZEPHYR_INCLUDE_POSIX_ARPA_INET_H_
8
9 #include <net/socket.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
inet_ntop(sa_family_t family,const void * src,char * dst,size_t size)15 static inline char *inet_ntop(sa_family_t family, const void *src, char *dst,
16 size_t size)
17 {
18 return zsock_inet_ntop(family, src, dst, size);
19 }
20
inet_pton(sa_family_t family,const char * src,void * dst)21 static inline int inet_pton(sa_family_t family, const char *src, void *dst)
22 {
23 return zsock_inet_pton(family, src, dst);
24 }
25
26 #ifdef __cplusplus
27 }
28 #endif
29
30 #endif /* ZEPHYR_INCLUDE_POSIX_ARPA_INET_H_ */
31