-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathscanner.h
More file actions
42 lines (28 loc) · 667 Bytes
/
scanner.h
File metadata and controls
42 lines (28 loc) · 667 Bytes
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
#ifndef __SCANNER_H__
#define __SCANNER_H__
#include <log.h>
#include <stdint.h>
typedef struct {
uint32_t ip_from;
uint32_t ip_to;
} ip_range_t;
typedef struct {
ip_range_t* ranges;
unsigned ranges_count;
uint32_t saddr;
// delay between probes
unsigned delay;
// timeout to wait after the last probe
unsigned timeout;
// dns params
char* qname;
uint16_t qtype;
uint16_t qclass;
bool randomize;
// Add a edns0 additional record
bool edns0;
} scanner_params_t;
extern scanner_params_t scanner_params;
int scanner_set_defaults(scanner_params_t* sp);
void scanner(scanner_params_t*);
#endif