mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Initial import of svn+ssh:://svn.icir.org/bro/trunk/bro as of r7088
This commit is contained in:
commit
61757ac78b
1383 changed files with 380824 additions and 0 deletions
30
src/HTTP-binpac.h
Normal file
30
src/HTTP-binpac.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
// $Id:$
|
||||
|
||||
#ifndef http_binpac_h
|
||||
#define http_binpac_h
|
||||
|
||||
#include "TCP.h"
|
||||
|
||||
#include "http_pac.h"
|
||||
|
||||
class HTTP_Analyzer_binpac : public TCP_ApplicationAnalyzer {
|
||||
public:
|
||||
HTTP_Analyzer_binpac(Connection* conn);
|
||||
virtual ~HTTP_Analyzer_binpac();
|
||||
|
||||
virtual void Done();
|
||||
virtual void DeliverStream(int len, const u_char* data, bool orig);
|
||||
virtual void Undelivered(int seq, int len, bool orig);
|
||||
virtual void EndpointEOF(TCP_Reassembler* endp);
|
||||
|
||||
static Analyzer* InstantiateAnalyzer(Connection* conn)
|
||||
{ return new HTTP_Analyzer_binpac(conn); }
|
||||
|
||||
static bool Available()
|
||||
{ return (http_request || http_reply) && FLAGS_use_binpac; }
|
||||
|
||||
protected:
|
||||
binpac::HTTP::HTTP_Conn* interp;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue