Branch data Line data Source code
1 : : // $Id:$
2 : :
3 : : #include "DHCP-binpac.h"
4 : :
5 : 0 : DHCP_Analyzer_binpac::DHCP_Analyzer_binpac(Connection* conn)
6 : 0 : : Analyzer(AnalyzerTag::DHCP_BINPAC, conn)
7 : : {
8 : 0 : interp = new binpac::DHCP::DHCP_Conn(this);
9 : 0 : }
10 : :
11 : 0 : DHCP_Analyzer_binpac::~DHCP_Analyzer_binpac()
12 : : {
13 [ # # ][ # # ]: 0 : delete interp;
[ # # ]
14 [ # # ][ # # ]: 0 : }
[ # # ]
15 : :
16 : 0 : void DHCP_Analyzer_binpac::Done()
17 : : {
18 : 0 : Analyzer::Done();
19 : 0 : }
20 : :
21 : : void DHCP_Analyzer_binpac::DeliverPacket(int len, const u_char* data,
22 : 0 : bool orig, int seq, const IP_Hdr* ip, int caplen)
23 : : {
24 : 0 : Analyzer::DeliverPacket(len, data, orig, seq, ip, caplen);
25 : 0 : interp->NewData(orig, data, data + len);
26 [ + - ][ + - ]: 6 : }
|