flowmon-http-plugins  1.0
FlowMon HTTP Input/Process/export plugins
 All Data Structures Files Functions Variables Typedefs Macros
flowmon-input-http.h
Go to the documentation of this file.
1 
38 #ifndef PLUGIN_FLOW_DEFINES_H_INCLUDED
39 #define PLUGIN_FLOW_DEFINES_H_INCLUDED
40 
42 #define DOMAIN_LENGTH 32
43 
45 #define REFERER_LENGTH 32
46 
48 #define URL_LENGTH 32
49 
51 #define PCAP_SIZE 1500
52 
54 #define FILTER_SIZE 300
55 
57 #define PATH_SIZE 50
58 
60 #define DEFAULT_INT 0
61 
63 #define PCAP_NETMASK_UNKNOWN 0xffffffff
64 
66 #define FILTER "(port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)) or (ip6 and port 80)"
67 
69 #define _ETH_P_8021AD 0x88A8
70 
72 #define _ETH_P_8021QINQ 0x9100
73 
75 #define _ETH_P_8021QINQ_DOUBLE 0x9200
76 
78 #define _ETH_P_8021QINQ_TRIPPLE 0x9300
79 
81 #define ETH_P_8021Q 0x8100
82 
84 #define VLAN_HLEN 4
85 
87 typedef struct http_record_st {
88  uint8_t useragent;
89  uint8_t method;
90  uint8_t content_type;
91  char url[URL_LENGTH];
94  uint16_t status;
95  uint16_t header_count;
96  uint8_t valid;
98 
100 extern int verbose_level;
101 
103 extern int debug_level;
104 
105 #endif /* PLUGIN_FLOW_DEFINES_H_INCLUDED */