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)  

flow_addr Class Reference

#include <tcpip.h>

Inheritance diagram for flow_addr:
[legend]
Collaboration diagram for flow_addr:
[legend]

Public Member Functions

 flow_addr ()
 
 flow_addr (const ipaddr &s, const ipaddr &d, uint16_t sp, uint16_t dp, sa_family_t f)
 
 flow_addr (const flow_addr &f)
 
virtual ~flow_addr ()
 
uint64_t hash () const
 
bool operator== (const flow_addr &b) const
 
bool operator< (const flow_addr &b) const
 
std::string str () const
 

Public Attributes

ipaddr src
 
ipaddr dst
 
uint16_t sport
 
uint16_t dport
 
sa_family_t family
 

Detailed Description

Definition at line 87 of file tcpip.h.

Constructor & Destructor Documentation

◆ flow_addr() [1/3]

flow_addr::flow_addr ( )
inline

Definition at line 89 of file tcpip.h.

◆ flow_addr() [2/3]

flow_addr::flow_addr ( const ipaddr s,
const ipaddr d,
uint16_t  sp,
uint16_t  dp,
sa_family_t  f 
)
inline

Definition at line 90 of file tcpip.h.

◆ flow_addr() [3/3]

flow_addr::flow_addr ( const flow_addr f)
inline

Definition at line 93 of file tcpip.h.

◆ ~flow_addr()

virtual flow_addr::~flow_addr ( )
inlinevirtual

Definition at line 96 of file tcpip.h.

Member Function Documentation

◆ hash()

uint64_t flow_addr::hash ( ) const
inline

Definition at line 103 of file tcpip.h.

References dport, ipaddr::dquad(), dst, family, ipaddr::quad(), sport, and src.

Referenced by tcpdemux::flow_addr_hash::operator()().

◆ operator<()

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

Definition at line 124 of file tcpip.h.

References dport, dst, family, sport, and src.

◆ operator==()

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

Definition at line 116 of file tcpip.h.

References dport, dst, family, sport, and src.

◆ str()

std::string flow_addr::str ( ) const
inline

Definition at line 138 of file tcpip.h.

References dport, dst, family, sport, and src.

Referenced by tcpdemux::create_tcpip(), and operator<<().

Member Data Documentation

◆ dport

uint16_t flow_addr::dport

Definition at line 100 of file tcpip.h.

Referenced by tcpip::dump_xml(), flow::filename(), hash(), operator<(), operator==(), and str().

◆ dst

ipaddr flow_addr::dst

Definition at line 98 of file tcpip.h.

Referenced by tcpip::dump_xml(), flow::filename(), hash(), operator<(), operator==(), and str().

◆ family

sa_family_t flow_addr::family

Definition at line 101 of file tcpip.h.

Referenced by tcpip::dump_xml(), flow::filename(), hash(), operator<(), operator==(), and str().

◆ sport

uint16_t flow_addr::sport

Definition at line 99 of file tcpip.h.

Referenced by tcpip::dump_xml(), flow::filename(), hash(), operator<(), operator==(), and str().

◆ src

ipaddr flow_addr::src

Definition at line 97 of file tcpip.h.

Referenced by tcpip::dump_xml(), flow::filename(), hash(), operator<(), operator==(), and str().


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