fix: overwrite of ports when multithreading
feature: service name
This commit is contained in:
@ -10,19 +10,18 @@
|
||||
#define TIMEOUT 1
|
||||
|
||||
typedef enum {
|
||||
OPENED,
|
||||
CLOSED,
|
||||
OPENED,
|
||||
FILTERED,
|
||||
UNFILTERED,
|
||||
OPENFILTERED,
|
||||
} e_state;
|
||||
|
||||
[[__maybe_unused__]] static const char *states_str[] = {
|
||||
"OPENED", "CLOSED", "FILTERED", "UNFILTERED", "OPENFILTERED",
|
||||
"CLOSED", "OPENED", "FILTERED", "UNFILTERED", "OPENFILTERED",
|
||||
};
|
||||
|
||||
struct response {
|
||||
uint16_t port;
|
||||
e_state states[SCAN_ALL];
|
||||
char *service;
|
||||
};
|
||||
|
Reference in New Issue
Block a user