All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
getaddrinfo.c File Reference
#include <freeradius-devel/libradius.h>
#include <ctype.h>
#include <sys/param.h>
+ Include dependency graph for getaddrinfo.c:

Go to the source code of this file.

Macros

#define BUFFER_OVERFLOW   255
 
#define LOCAL_GETHOSTBYADDRR   1
 
#define LOCAL_GETHOSTBYNAMERSTYLE   1
 

Functions

static int copy_hostent (struct hostent *from, struct hostent *to, char *buffer, int buflen, int *error)
 
void freeaddrinfo (struct addrinfo *ai)
 
char const * gai_strerror (int ecode)
 
int getaddrinfo (char const *hostname, char const *servname, struct addrinfo const *hints, struct addrinfo **res)
 
static struct hostent * gethostbyaddr_r (char const *addr, int len, int type, struct hostent *result, char *buffer, int buflen, int *error)
 
static struct hostent * gethostbyname_r (char const *hostname, struct hostent *result, char *buffer, int buflen, int *error)
 
int getnameinfo (struct sockaddr const *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, unsigned int flags)
 
static struct addrinfo * malloc_ai (uint16_t port, u_long addr, int socktype, int proto)
 

Macro Definition Documentation

#define BUFFER_OVERFLOW   255

Definition at line 77 of file getaddrinfo.c.

#define LOCAL_GETHOSTBYADDRR   1

Definition at line 29 of file getaddrinfo.c.

#define LOCAL_GETHOSTBYNAMERSTYLE   1

Definition at line 20 of file getaddrinfo.c.

Function Documentation

static int copy_hostent ( struct hostent *  from,
struct hostent *  to,
char *  buffer,
int  buflen,
int *  error 
)
static

Definition at line 78 of file getaddrinfo.c.

+ Here is the caller graph for this function:

void freeaddrinfo ( struct addrinfo *  ai)

Definition at line 247 of file getaddrinfo.c.

+ Here is the caller graph for this function:

char const* gai_strerror ( int  ecode)

Definition at line 227 of file getaddrinfo.c.

+ Here is the caller graph for this function:

int getaddrinfo ( char const *  hostname,
char const *  servname,
struct addrinfo const *  hints,
struct addrinfo **  res 
)

Definition at line 259 of file getaddrinfo.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static struct hostent* gethostbyaddr_r ( char const *  addr,
int  len,
int  type,
struct hostent *  result,
char *  buffer,
int  buflen,
int *  error 
)
static

Definition at line 167 of file getaddrinfo.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static struct hostent* gethostbyname_r ( char const *  hostname,
struct hostent *  result,
char *  buffer,
int  buflen,
int *  error 
)
static

Definition at line 135 of file getaddrinfo.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int getnameinfo ( struct sockaddr const *  sa,
socklen_t  salen,
char *  host,
size_t  hostlen,
char *  serv,
size_t  servlen,
unsigned int  flags 
)

Definition at line 379 of file getaddrinfo.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static struct addrinfo* malloc_ai ( uint16_t  port,
u_long  addr,
int  socktype,
int  proto 
)
static

Definition at line 205 of file getaddrinfo.c.

+ Here is the caller graph for this function: