wip: file of hosts as an argument

This commit is contained in:
0x35c
2025-05-29 14:25:03 +02:00
parent 623b3ad0d7
commit 331d1077b9
4 changed files with 54 additions and 18 deletions

View File

@ -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);