tcpflow  1.6.1
About: tcpflow is a TCP/IP packet demultiplexer that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis and debugging.
  Fossies Dox: tcpflow-1.6.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

inet_ntop.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static const char * inet_ntop4 (const struct in_addr *addr, char *buf, socklen_t buflen)
 
static const char * inet_ntop6 (const struct private_in6_addr *addr, char *buf, socklen_t buflen)
 
const char * inet_ntop (int af, const void *addr, char *buf, socklen_t len)
 

Function Documentation

◆ inet_ntop()

const char* inet_ntop ( int  af,
const void *  addr,
char *  buf,
socklen_t  len 
)

Definition at line 41 of file inet_ntop.c.

References inet_ntop4(), and inet_ntop6().

Referenced by flow::filename(), iptreet< TYPE, ADDRBYTES >::ipv6(), and operator<<().

◆ inet_ntop4()

static const char* inet_ntop4 ( const struct in_addr *  addr,
char *  buf,
socklen_t  buflen 
)
static

private implementaiton if inet_ntop for systems that don't have it. Functionally, correct, this version doesn't do condensing of IPv6 addresses, and is kind of slow.

This is included if the OS does not have inet_ntop.

PUBLIC DOMAIN. Simson L. Garfinkel, Jan 20, 2013

Definition at line 12 of file inet_ntop.c.

Referenced by inet_ntop().

◆ inet_ntop6()

static const char* inet_ntop6 ( const struct private_in6_addr *  addr,
char *  buf,
socklen_t  buflen 
)
static

Definition at line 19 of file inet_ntop.c.

Referenced by inet_ntop().