fix: overwrite of ports when multithreading

feature: service name
This commit is contained in:
0x35c
2025-05-31 10:21:18 +02:00
parent f35cad887d
commit ee2af274d9
4 changed files with 48 additions and 15 deletions

View File

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