core: use only one struct data instead of thead_data and scan_data
core: do parsing in the main, put all in struct general fix: code support port > 1024
This commit is contained in:
@ -19,14 +19,15 @@ typedef enum {
|
||||
};
|
||||
|
||||
struct scan {
|
||||
const struct host *host;
|
||||
const char *dest_addr;
|
||||
struct host host;
|
||||
char *dest_addr;
|
||||
uint16_t port_start;
|
||||
uint16_t port;
|
||||
uint16_t port_end;
|
||||
e_scantype type;
|
||||
uint8_t ttl;
|
||||
uint8_t max_retries;
|
||||
struct response *response;
|
||||
struct response *responses;
|
||||
uint8_t nb_threads;
|
||||
};
|
||||
|
||||
int scan(struct scan *data);
|
||||
|
Reference in New Issue
Block a user