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:
@ -7,17 +7,4 @@
|
||||
#include "response.h"
|
||||
#include "scan.h"
|
||||
|
||||
struct thread {
|
||||
uint16_t port_start;
|
||||
uint16_t port_end;
|
||||
char *dest_addr;
|
||||
e_scantype type;
|
||||
uint8_t max_retries;
|
||||
uint8_t ttl;
|
||||
struct host host;
|
||||
struct response *responses;
|
||||
};
|
||||
|
||||
void *routine(void *p_data);
|
||||
int create_threads(const struct option_lst *options, char *ip_addr,
|
||||
struct response *responses);
|
||||
int create_threads(struct scan *general);
|
||||
|
Reference in New Issue
Block a user