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)  

scan_http.cpp File Reference
#include "config.h"
#include "tcpflow.h"
#include "tcpip.h"
#include "tcpdemux.h"
#include "http-parser/http_parser.h"
#include "mime_map.h"
#include <sys/types.h>
#include <iostream>
#include <algorithm>
#include <map>
#include <iomanip>
Include dependency graph for scan_http.cpp:

Go to the source code of this file.

Classes

class  scan_http_cbo
 

Macros

#define z_stream   void *
 
#define MIN_HTTP_BUFSIZE   80
 
#define HTTP_CMD   "http_cmd"
 
#define HTTP_ALERT_FD   "http_alert_fd"
 
#define CBO   (reinterpret_cast<scan_http_cbo*>(parser->data))
 

Functions

void scan_http (const class scanner_params &sp, const recursion_control_block &rcb)
 

Variables

std::string http_cmd
 
int http_subproc_max = 10
 
int http_subproc = 0
 
int http_alert_fd = -1
 

Macro Definition Documentation

◆ CBO

#define CBO   (reinterpret_cast<scan_http_cbo*>(parser->data))

Definition at line 96 of file scan_http.cpp.

◆ HTTP_ALERT_FD

#define HTTP_ALERT_FD   "http_alert_fd"

Definition at line 45 of file scan_http.cpp.

◆ HTTP_CMD

#define HTTP_CMD   "http_cmd"

Definition at line 44 of file scan_http.cpp.

◆ MIN_HTTP_BUFSIZE

#define MIN_HTTP_BUFSIZE   80

Definition at line 36 of file scan_http.cpp.

◆ z_stream

#define z_stream   void *

scan_http: Decodes HTTP responses

Definition at line 33 of file scan_http.cpp.

Function Documentation

◆ scan_http()

Variable Documentation

◆ http_alert_fd

int http_alert_fd = -1

◆ http_cmd

std::string http_cmd

Definition at line 48 of file scan_http.cpp.

Referenced by scan_http_cbo::on_message_complete(), and scan_http().

◆ http_subproc

int http_subproc = 0

Definition at line 50 of file scan_http.cpp.

Referenced by scan_http_cbo::on_message_complete().

◆ http_subproc_max

int http_subproc_max = 10

Definition at line 49 of file scan_http.cpp.

Referenced by scan_http_cbo::on_message_complete().