Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
inet.h
Go to the documentation of this file.
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 <stddef.h>
10
13
14#include <zephyr/net/socket.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
21
22in_addr_t inet_addr(const char *cp);
23char *inet_ntoa(struct in_addr in);
24char *inet_ntop(sa_family_t family, const void *src, char *dst, size_t size);
25int inet_pton(sa_family_t family, const char *src, void *dst);
26
27#define ntohs(x) net_ntohs(x)
28#define ntohl(x) net_ntohl(x)
29#define ntohll(x) net_ntohll(x)
30#define htons(x) net_htons(x)
31#define htonl(x) net_htonl(x)
32#define htonll(x) net_htonll(x)
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif /* ZEPHYR_INCLUDE_POSIX_ARPA_INET_H_ */
#define in_addr
Definition in.h:20
in_addr_t inet_addr(const char *cp)
uint32_t in_addr_t
Definition inet.h:20
int inet_pton(sa_family_t family, const char *src, void *dst)
char * inet_ntop(sa_family_t family, const void *src, char *dst, size_t size)
char * inet_ntoa(struct net_in_addr in)
BSD Sockets compatible API definitions.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90