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)  

ipaddr Class Reference

#include <tcpip.h>

Public Member Functions

 ipaddr ()
 
 ipaddr (const in_addr_t &a)
 
 ipaddr (const uint8_t a[16])
 
bool bit (int i) const
 
uint32_t quad (int i) const
 
uint64_t dquad (int i) const
 
bool operator== (const ipaddr &b) const
 
bool operator<= (const ipaddr &b) const
 
bool operator> (const ipaddr &b) const
 
bool operator>= (const ipaddr &b) const
 
bool operator< (const ipaddr &b) const
 

Public Attributes

uint8_t addr [16]
 

Detailed Description

ipaddress class. represents IPv4 and IPv6 addresses. IPv4 addresses have address in bytes 0..3 and all NULL for bytes 4..11

Definition at line 25 of file tcpip.h.

Constructor & Destructor Documentation

◆ ipaddr() [1/3]

ipaddr::ipaddr ( )
inline

Definition at line 27 of file tcpip.h.

References addr.

◆ ipaddr() [2/3]

ipaddr::ipaddr ( const in_addr_t a)
inline

Definition at line 30 of file tcpip.h.

References addr.

◆ ipaddr() [3/3]

ipaddr::ipaddr ( const uint8_t  a[16])
inline

Definition at line 37 of file tcpip.h.

References addr.

Member Function Documentation

◆ bit()

bool ipaddr::bit ( int  i) const
inline

Definition at line 42 of file tcpip.h.

References addr.

◆ dquad()

uint64_t ipaddr::dquad ( int  i) const
inline

Definition at line 48 of file tcpip.h.

References quad().

Referenced by flow_addr::hash().

◆ operator<()

bool ipaddr::operator< ( const ipaddr b) const
inline

Definition at line 56 of file tcpip.h.

References addr.

◆ operator<=()

bool ipaddr::operator<= ( const ipaddr b) const
inline

Definition at line 53 of file tcpip.h.

References addr.

◆ operator==()

bool ipaddr::operator== ( const ipaddr b) const
inline

Definition at line 52 of file tcpip.h.

References addr.

◆ operator>()

bool ipaddr::operator> ( const ipaddr b) const
inline

Definition at line 54 of file tcpip.h.

References addr.

◆ operator>=()

bool ipaddr::operator>= ( const ipaddr b) const
inline

Definition at line 55 of file tcpip.h.

References addr.

◆ quad()

uint32_t ipaddr::quad ( int  i) const
inline

Definition at line 45 of file tcpip.h.

References addr.

Referenced by dquad(), and flow_addr::hash().

Member Data Documentation

◆ addr

uint8_t ipaddr::addr[16]

The documentation for this class was generated from the following file: