wip: file of hosts as an argument
This commit is contained in:
@ -4,12 +4,13 @@
|
||||
|
||||
#include "scan.h"
|
||||
|
||||
#define NB_OPTIONS 5
|
||||
#define NB_OPTIONS 6
|
||||
|
||||
typedef enum {
|
||||
FL_HELP,
|
||||
FL_PORTS,
|
||||
FL_IP,
|
||||
FL_FILE,
|
||||
FL_SPEEDUP,
|
||||
FL_SCAN,
|
||||
} e_flag;
|
||||
@ -21,6 +22,6 @@ struct option_lst {
|
||||
};
|
||||
|
||||
struct option_lst *parse_options(int ac, char *const *av);
|
||||
const char *get_option_arg(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);
|
||||
|
Reference in New Issue
Block a user