Zephyr API Documentation 4.4.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
inet.h File Reference
#include <stddef.h>
#include <zephyr/posix/netinet/in.h>
#include <zephyr/posix/sys/socket.h>
#include <zephyr/net/socket.h>

Go to the source code of this file.

Macros

#define ntohs(x)   net_ntohs(x)
 
#define ntohl(x)   net_ntohl(x)
 
#define ntohll(x)   net_ntohll(x)
 
#define htons(x)   net_htons(x)
 
#define htonl(x)   net_htonl(x)
 
#define htonll(x)   net_htonll(x)
 

Typedefs

typedef uint32_t in_addr_t
 

Functions

in_addr_t inet_addr (const char *cp)
 
char * inet_ntoa (struct in_addr in)
 
char * inet_ntop (sa_family_t family, const void *src, char *dst, size_t size)
 
int inet_pton (sa_family_t family, const char *src, void *dst)
 

Macro Definition Documentation

◆ htonl

#define htonl (   x)    net_htonl(x)

◆ htonll

#define htonll (   x)    net_htonll(x)

◆ htons

#define htons (   x)    net_htons(x)

◆ ntohl

#define ntohl (   x)    net_ntohl(x)

◆ ntohll

#define ntohll (   x)    net_ntohll(x)

◆ ntohs

#define ntohs (   x)    net_ntohs(x)

Typedef Documentation

◆ in_addr_t

Function Documentation

◆ inet_addr()

in_addr_t inet_addr ( const char *  cp)

◆ inet_ntoa()

char * inet_ntoa ( struct in_addr  in)

◆ inet_ntop()

char * inet_ntop ( sa_family_t  family,
const void *  src,
char *  dst,
size_t  size 
)

◆ inet_pton()

int inet_pton ( sa_family_t  family,
const char *  src,
void *  dst 
)