Line data Source code
1 0 : /*
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 <stddef.h>
10 :
11 : #include <zephyr/posix/netinet/in.h>
12 : #include <zephyr/posix/sys/socket.h>
13 :
14 : #include <zephyr/net/socket.h>
15 :
16 : #ifdef __cplusplus
17 : extern "C" {
18 : #endif
19 :
20 0 : typedef uint32_t in_addr_t;
21 :
22 0 : in_addr_t inet_addr(const char *cp);
23 0 : char *inet_ntoa(struct in_addr in);
24 0 : char *inet_ntop(sa_family_t family, const void *src, char *dst, size_t size);
25 0 : int inet_pton(sa_family_t family, const char *src, void *dst);
26 :
27 : #ifdef __cplusplus
28 : }
29 : #endif
30 :
31 : #endif /* ZEPHYR_INCLUDE_POSIX_ARPA_INET_H_ */
|