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)  

Loading...
Searching...
No Matches
tcpip.h File Reference
#include <fstream>
#include "inet_ntop.h"
#include "intrusive_list.h"
Include dependency graph for tcpip.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ipaddr
 
class  ipaddr_prn
 
class  flow_addr
 
class  flow
 
class  tcp_header_t
 
class  tcpip
 
class  saved_flow
 
class  sparse_saved_flow
 

Macros

#define PORT_HTTP   80
 
#define PORT_HTTP_ALT_0   8080
 
#define PORT_HTTP_ALT_1   8000
 
#define PORT_HTTP_ALT_2   8888
 
#define PORT_HTTP_ALT_3   81
 
#define PORT_HTTP_ALT_4   82
 
#define PORT_HTTP_ALT_5   8090
 
#define PORT_HTTPS   443
 
#define PORT_SSH   22
 
#define PORT_FTP_DATA   20
 
#define PORT_FTP_CONTROL   21
 

Typedefs

typedef uint32_t in_addr_t
 
typedef unsigned short int sa_family_t
 

Functions

std::ostream & operator<< (std::ostream &os, const ipaddr_prn &b)
 
bool operator== (const struct timeval &a, const struct timeval &b)
 
bool operator< (const struct timeval &a, const struct timeval &b)
 
std::ostream & operator<< (std::ostream &os, const flow_addr &f)
 
std::ostream & operator<< (std::ostream &os, const tcpip &f)
 

Macro Definition Documentation

◆ PORT_FTP_CONTROL

#define PORT_FTP_CONTROL   21

Definition at line 218 of file tcpip.h.

◆ PORT_FTP_DATA

#define PORT_FTP_DATA   20

Definition at line 217 of file tcpip.h.

◆ PORT_HTTP

#define PORT_HTTP   80

Definition at line 208 of file tcpip.h.

◆ PORT_HTTP_ALT_0

#define PORT_HTTP_ALT_0   8080

Definition at line 209 of file tcpip.h.

◆ PORT_HTTP_ALT_1

#define PORT_HTTP_ALT_1   8000

Definition at line 210 of file tcpip.h.

◆ PORT_HTTP_ALT_2

#define PORT_HTTP_ALT_2   8888

Definition at line 211 of file tcpip.h.

◆ PORT_HTTP_ALT_3

#define PORT_HTTP_ALT_3   81

Definition at line 212 of file tcpip.h.

◆ PORT_HTTP_ALT_4

#define PORT_HTTP_ALT_4   82

Definition at line 213 of file tcpip.h.

◆ PORT_HTTP_ALT_5

#define PORT_HTTP_ALT_5   8090

Definition at line 214 of file tcpip.h.

◆ PORT_HTTPS

#define PORT_HTTPS   443

Definition at line 215 of file tcpip.h.

◆ PORT_SSH

#define PORT_SSH   22

Definition at line 216 of file tcpip.h.

Typedef Documentation

◆ in_addr_t

typedef uint32_t in_addr_t

On windows, there is no in_addr_t; this is from /usr/include/netinet/in.h

Definition at line 12 of file tcpip.h.

◆ sa_family_t

typedef unsigned short int sa_family_t

Definition at line 16 of file tcpip.h.

Function Documentation

◆ operator<()

bool operator< ( const struct timeval &  a,
const struct timeval &  b 
)
inline

Definition at line 79 of file tcpip.h.

◆ operator<<() [1/3]

std::ostream & operator<< ( std::ostream &  os,
const flow_addr f 
)
inline

Definition at line 145 of file tcpip.h.

References flow_addr::str().

◆ operator<<() [2/3]

std::ostream & operator<< ( std::ostream &  os,
const ipaddr_prn b 
)
inline

Definition at line 68 of file tcpip.h.

References ipaddr::addr, ipaddr_prn::family, ipaddr_prn::ia, and inet_ntop().

◆ operator<<() [3/3]

std::ostream & operator<< ( std::ostream &  os,
const tcpip f 
)
inline

◆ operator==()

bool operator== ( const struct timeval &  a,
const struct timeval &  b 
)
inline

Definition at line 75 of file tcpip.h.