FreeBSD kernel libkern code
inet_ntop.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/systm.h>
#include <netinet/in.h>
Include dependency graph for inet_ntop.c:

Go to the source code of this file.

Macros

#define NS_IN6ADDRSZ   16
 
#define NS_INT16SZ   2
 

Functions

 __FBSDID ("$BSDSUniX$")
 
static char * inet_ntop4 (const u_char *src, char *dst, socklen_t size)
 
static char * inet_ntop6 (const u_char *src, char *dst, socklen_t size)
 
char * inet_ntop (int af, const void *src, char *dst, socklen_t size)
 

Macro Definition Documentation

#define NS_IN6ADDRSZ   16

Referenced by inet_ntop6().

#define NS_INT16SZ   2

Referenced by inet_ntop6().

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
char* inet_ntop ( int  af,
const void *  src,
char *  dst,
socklen_t  size 
)

Definition at line 47 of file inet_ntop.c.

References inet_ntop4(), and inet_ntop6().

Here is the call graph for this function:

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

Definition at line 72 of file inet_ntop.c.

References strlcpy().

Referenced by inet_ntop(), and inet_ntop6().

Here is the call graph for this function:

Here is the caller graph for this function:

static char * inet_ntop6 ( const u_char *  src,
char *  dst,
socklen_t  size 
)
static

Definition at line 93 of file inet_ntop.c.

References inet_ntop4(), memset(), NS_IN6ADDRSZ, NS_INT16SZ, strcpy(), and strlen().

Referenced by inet_ntop().

Here is the call graph for this function:

Here is the caller graph for this function: