gsasl  1.10.0
About: GNU SASL is an implementation of the Simple Authentication and Security Layer (SASL). Development version.
  Fossies Dox: gsasl-1.10.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

inet_ntop.c File Reference
#include <config.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
Include dependency graph for inet_ntop.c:

Go to the source code of this file.

Macros

#define IF_LINT(Code)   /* empty */
 
#define NS_IN6ADDRSZ   16
 
#define NS_INT16SZ   2
 

Typedefs

typedef int verify_int_size[4<=sizeof(int) ? 1 :-1]
 

Functions

static const char * inet_ntop4 (const unsigned char *src, char *dst, socklen_t size)
 
const char * inet_ntop (int af, const void *src, char *dst, socklen_t cnt)
 

Macro Definition Documentation

◆ IF_LINT

#define IF_LINT (   Code)    /* empty */

Definition at line 46 of file inet_ntop.c.

◆ NS_IN6ADDRSZ

#define NS_IN6ADDRSZ   16

Definition at line 67 of file inet_ntop.c.

◆ NS_INT16SZ

#define NS_INT16SZ   2

Definition at line 68 of file inet_ntop.c.

Typedef Documentation

◆ verify_int_size

typedef int verify_int_size[4<=sizeof(int) ? 1 :-1]

Definition at line 74 of file inet_ntop.c.

Function Documentation

◆ inet_ntop()

const char* inet_ntop ( int  af,
const void *  src,
char *  dst,
socklen_t  cnt 
)

Definition at line 91 of file inet_ntop.c.

References inet_ntop4(), and NULL.

Referenced by getnameinfo().

◆ inet_ntop4()

static const char * inet_ntop4 ( const unsigned char *  src,
char *  dst,
socklen_t  size 
)
static

Definition at line 125 of file inet_ntop.c.

References NULL, and tmp.

Referenced by inet_ntop().