1 /*
2     This file is part of Kismet
3 
4     Kismet is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8 
9     Kismet is distributed in the hope that it will be useful,
10       but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13 
14     You should have received a copy of the GNU General Public License
15     along with Kismet; if not, write to the Free Software
16     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17 */
18 
19 #ifndef __DUMPFILE_STRING_H__
20 #define __DUMPFILE_STRING_H__
21 
22 #include "config.h"
23 
24 #include <stdio.h>
25 #include <string>
26 
27 #include "globalregistry.h"
28 #include "configfile.h"
29 #include "messagebus.h"
30 #include "packetchain.h"
31 #include "packetdissectors.h"
32 #include "dumpfile.h"
33 
34 // Hook for grabbing packets
35 int dumpfilestring_chain_hook(CHAINCALL_PARMS);
36 
37 // Pcap-based packet writer
38 class Dumpfile_String : public Dumpfile {
39 public:
40 	Dumpfile_String();
41 	Dumpfile_String(GlobalRegistry *in_globalreg);
42 	virtual ~Dumpfile_String();
43 
44 	virtual int chain_handler(kis_packet *in_pack);
45 	virtual int Flush();
46 protected:
47 	FILE *stringfile;
48 };
49 
50 #endif /* __dump... */
51 
52