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)  

tcpdemux.cpp File Reference
#include "tcpflow.h"
#include "tcpip.h"
#include "tcpdemux.h"
#include <iostream>
#include <sstream>
#include <vector>
#include "iptree.h"
Include dependency graph for tcpdemux.cpp:

Go to the source code of this file.

Macros

#define FLAG_SET(vector, flag)   ((vector) & (flag))
 

Variables

int c = 0
 

Macro Definition Documentation

◆ FLAG_SET

#define FLAG_SET (   vector,
  flag 
)    ((vector) & (flag))

process_tcp():

Called to processes a tcp packet from either process_ip4() or process_ip6(). The caller breaks out the ip addresses and finds the start of the tcp header.

Skips but otherwise ignores TCP options.

creates a new tcp connection if necessary, then asks the connection to either print the packet or store it.

Returns 0 if packet is processed, 1 if it is not processed, -1 if error

Definition at line 434 of file tcpdemux.cpp.

Variable Documentation

◆ c

int c = 0

save information on this flow needed to handle strangling packets

Definition at line 366 of file tcpdemux.cpp.

Referenced by word_and_context_list::add_fc(), context::context(), scanner_info::get_config(), ishexnumber(), isodigit(), isxdigit(), operator<<(), and word_and_context_list::readfile().