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:
@ -12,7 +12,7 @@ typedef enum {
|
||||
FL_IP,
|
||||
FL_FILE,
|
||||
FL_SPEEDUP,
|
||||
FL_SCAN,
|
||||
FL_TYPE,
|
||||
FL_MAXRETRIES,
|
||||
FL_TTL,
|
||||
// short options
|
||||
@ -26,8 +26,7 @@ struct option_lst {
|
||||
};
|
||||
|
||||
struct option_lst *parse_options(int ac, char *const *av);
|
||||
bool option_isset(const struct option_lst *options, e_flag flag);
|
||||
char *get_option_arg(const struct option_lst *options, e_flag flag);
|
||||
int parse_ports(const char *arg, uint16_t *start, uint16_t *end);
|
||||
e_scantype parse_type(const char *arg);
|
||||
void free_options(struct option_lst *options);
|
||||
int parsing(struct scan *general, const struct option_lst *options);
|
Reference in New Issue
Block a user