flowmon-http-plugins  1.0
FlowMon HTTP Input/Process/export plugins
 All Data Structures Files Functions Variables Typedefs Macros
flowmon-input-http.h File Reference

Go to the source code of this file.

Data Structures

struct  http_record_st

Macros

#define DOMAIN_LENGTH   32
#define REFERER_LENGTH   32
#define URL_LENGTH   32
#define PCAP_SIZE   1500
#define FILTER_SIZE   300
#define PATH_SIZE   50
#define DEFAULT_INT   0
#define PCAP_NETMASK_UNKNOWN   0xffffffff
#define FILTER   "(port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)) or (ip6 and port 80)"
#define _ETH_P_8021AD   0x88A8
#define _ETH_P_8021QINQ   0x9100
#define _ETH_P_8021QINQ_DOUBLE   0x9200
#define _ETH_P_8021QINQ_TRIPPLE   0x9300
#define ETH_P_8021Q   0x8100
#define VLAN_HLEN   4

Typedefs

typedef struct http_record_st http_record_t

Variables

int verbose_level
int debug_level

Macro Definition Documentation

#define DOMAIN_LENGTH   32

Length of HTTP_DOMAIN getter

Definition at line 42 of file flowmon-input-http.h.

#define REFERER_LENGTH   32

Length of HTTP_REFERER getter

Definition at line 45 of file flowmon-input-http.h.

#define URL_LENGTH   32

Length of HTTP_URL getter

Definition at line 48 of file flowmon-input-http.h.

#define PCAP_SIZE   1500

Size of pcap buffer

Definition at line 51 of file flowmon-input-http.h.

#define FILTER_SIZE   300

Size of buffer for filter

Definition at line 54 of file flowmon-input-http.h.

#define PATH_SIZE   50

Size of path to pcap file or device name

Definition at line 57 of file flowmon-input-http.h.

#define DEFAULT_INT   0

Default value for HTTP getters

Definition at line 60 of file flowmon-input-http.h.

#define PCAP_NETMASK_UNKNOWN   0xffffffff

Value used in parsing with PCAP library

Definition at line 63 of file flowmon-input-http.h.

#define FILTER   "(port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)) or (ip6 and port 80)"

Default filter, capture IPV4 non broadcast traffic and all ipv6 traffic on port 80

Definition at line 66 of file flowmon-input-http.h.

#define _ETH_P_8021AD   0x88A8

Value used in parsing with PCAP library

Definition at line 69 of file flowmon-input-http.h.

#define _ETH_P_8021QINQ   0x9100

Value used in parsing with PCAP library

Definition at line 72 of file flowmon-input-http.h.

#define _ETH_P_8021QINQ_DOUBLE   0x9200

Value used in parsing with PCAP library

Definition at line 75 of file flowmon-input-http.h.

#define _ETH_P_8021QINQ_TRIPPLE   0x9300

Value used in parsing with PCAP library

Definition at line 78 of file flowmon-input-http.h.

#define ETH_P_8021Q   0x8100

Value used in parsing with PCAP library

Definition at line 81 of file flowmon-input-http.h.

#define VLAN_HLEN   4

Length of vlan header used in parsing wiht PCAP library

Definition at line 84 of file flowmon-input-http.h.


Typedef Documentation

typedef struct http_record_st http_record_t

Struct keeps all plugin defined getters


Variable Documentation

int verbose_level

flowmonexp verbose level

int debug_level

flowmonexp debug level