6#ifndef ZEPHYR_INCLUDE_POSIX_NETDB_H_
7#define ZEPHYR_INCLUDE_POSIX_NETDB_H_
16#define EAI_BADFLAGS DNS_EAI_BADFLAGS
17#define EAI_NONAME DNS_EAI_NONAME
18#define EAI_AGAIN DNS_EAI_AGAIN
19#define EAI_FAIL DNS_EAI_FAIL
20#define EAI_NODATA DNS_EAI_NODATA
21#define EAI_MEMORY DNS_EAI_MEMORY
22#define EAI_SYSTEM DNS_EAI_SYSTEM
23#define EAI_SERVICE DNS_EAI_SERVICE
24#define EAI_SOCKTYPE DNS_EAI_SOCKTYPE
25#define EAI_FAMILY DNS_EAI_FAMILY
26#define EAI_OVERFLOW DNS_EAI_OVERFLOW
60#define addrinfo zsock_addrinfo
size_t socklen_t
Length of a socket address.
Definition net_ip.h:168
BSD Sockets compatible API definitions.
struct servent * getservbyport(int port, const char *proto)
void setnetent(int stayopen)
struct netent * getnetbyaddr(uint32_t net, int type)
struct netent * getnetent(void)
struct protoent * getprotobyname(const char *name)
struct netent * getnetbyname(const char *name)
struct hostent * gethostent(void)
int getnameinfo(const struct sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)
void setprotoent(int stayopen)
const char * gai_strerror(int errcode)
struct protoent * getprotoent(void)
struct servent * getservbyname(const char *name, const char *proto)
struct servent * getservent(void)
void setservent(int stayopen)
struct protoent * getprotobynumber(int proto)
void sethostent(int stayopen)
int getaddrinfo(const char *host, const char *service, const struct zsock_addrinfo *hints, struct zsock_addrinfo **res)
void freeaddrinfo(struct zsock_addrinfo *ai)
flags
Definition parser.h:96
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
int h_addrtype
Definition netdb.h:35
char * h_name
Definition netdb.h:33
char ** h_addr_list
Definition netdb.h:37
int h_length
Definition netdb.h:36
char ** h_aliases
Definition netdb.h:34
uint32_t n_net
Definition netdb.h:44
char ** n_aliases
Definition netdb.h:42
char * n_name
Definition netdb.h:41
int n_addrtype
Definition netdb.h:43
int p_proto
Definition netdb.h:50
char ** p_aliases
Definition netdb.h:49
char * p_name
Definition netdb.h:48
char * s_name
Definition netdb.h:54
char * s_proto
Definition netdb.h:57
char ** s_aliases
Definition netdb.h:55
int s_port
Definition netdb.h:56
Generic sockaddr struct.
Definition net_ip.h:385
Definition used when querying address information.
Definition socket.h:272