-
Notifications
You must be signed in to change notification settings - Fork 0
/
readfp.h
41 lines (26 loc) · 1.15 KB
/
readfp.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
/*
p0f - p0f.fp file parser
------------------------
Copyright (C) 2012 by Michal Zalewski <[email protected]>
Distributed under the terms and conditions of GNU LGPL.
*/
#ifndef _HAVE_READFP_H
#define _HAVE_READFP_H
#include "types.h"
/* List of fingerprinting modules: */
#define CF_MOD_TCP 0x00 /* fp_tcp.c */
#define CF_MOD_MTU 0x01 /* fp_mtu.c */
#define CF_MOD_HTTP 0x02 /* fp_http.c */
/* Parser states: */
#define CF_NEED_SECT 0x00 /* Waiting for [...] or 'classes' */
#define CF_NEED_LABEL 0x01 /* Waiting for 'label' */
#define CF_NEED_SYS 0x02 /* Waiting for 'sys' */
#define CF_NEED_SIG 0x03 /* Waiting for signatures, if any. */
/* Flag to distinguish OS class and name IDs */
#define SYS_CLASS_FLAG (1<<31)
#define SYS_NF(_x) ((_x) & ~SYS_CLASS_FLAG)
extern u8** fp_os_classes;
extern u8** fp_os_names;
void read_config(u8* fname);
u32 lookup_name_id(u8* name, u8 len);
#endif /* !_HAVE_READFP_H */