#include "squid.h"
Include dependency graph for getnameinfo.cc:

Go to the source code of this file.
Classes | |
struct | afd |
Functions | |
int | xgetnameinfo (const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags) |
Variables | |
static const struct afd | afdl [] |
Function Documentation
◆ xgetnameinfo()
int xgetnameinfo | ( | const struct sockaddr * | sa, |
socklen_t | salen, | ||
char * | host, | ||
size_t | hostlen, | ||
char * | serv, | ||
size_t | servlen, | ||
int | flags | ||
) |
Definition at line 154 of file getnameinfo.cc.
References afd::a_addrlen, afd::a_af, afd::a_off, afd::a_portoff, afd::a_socklen, afdl, EAI_FAIL, EAI_FAMILY, EAI_NONAME, EAI_OVERFLOW, EAI_SYSTEM, error(), freehostent(), gethostbyaddr(), getipnodebyaddr(), getservbyport(), hostent::h_name, IN_EXPERIMENTAL, inet_ntop, NI_DGRAM, NI_NAMEREQD, NI_NUMERICHOST, NI_NUMERICSERV, port, and xstrncpy().
Variable Documentation
◆ afdl
|
static |
Initial value:
= {
{ PF_INET, sizeof(struct in_addr), sizeof(struct sockaddr_in),
offsetof(struct sockaddr_in, sin_addr),
offsetof(struct sockaddr_in, sin_port)
},
{0, 0, 0, 0, 0},
}
Referenced by xgetnameinfo().