forked from p0f/p0f
-
Notifications
You must be signed in to change notification settings - Fork 0
/
p0f_info.h
43 lines (32 loc) · 767 Bytes
/
p0f_info.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <map>
#include <time.h>
#include <QString>
#include "QDebug"
#include "QMap"
#ifndef P0F_PACKET_H
#define P0F_PACKET_H
//Abstract class
enum info_type{
MTU_INFO,
HTTP_REQUEST,
HTTP_RESPONSE,
SYN_INFO,
UPTIME_INFO,
HOST_CHANGE,
IP_SHARING
};
class p0f_info
{
public:
p0f_info(QString ip, info_type packet_type);
QString get_value(QString field);
QString get_address();
QString get_info();
info_type get_type();
void set_info_field(QString key,QString value);
private:
QHash<QString,QString> information;//place where info are stored
QString ip_address; //address of the computer which we are trying to identify
info_type type; //type of info(mtu http syn)
};
#endif // P0F_PACKET_H