// See the file "COPYING" in the main distribution directory for copyright.

#pragma once

#include "snmp_pac.h"

namespace analyzer { namespace snmp {

class SNMP_Analyzer : public analyzer::Analyzer {

public:

	explicit SNMP_Analyzer(Connection* conn);
	virtual ~SNMP_Analyzer();

	virtual void Done();
	virtual void DeliverPacket(int len, const u_char* data, bool orig,
	                           uint64_t seq, const IP_Hdr* ip, int caplen);

	static analyzer::Analyzer* InstantiateAnalyzer(Connection* conn)
		{ return new SNMP_Analyzer(conn); }

protected:

	binpac::SNMP::SNMP_Conn* interp;
};

} } // namespace analyzer::*
