feature: start to implement responses

This commit is contained in:
0x35c
2025-05-22 17:08:26 +02:00
parent 1361cd9f9c
commit 84d5960900
10 changed files with 224 additions and 23 deletions

View File

@ -2,6 +2,9 @@
#include <stdint.h>
#include "host.h"
#include "response.h"
typedef enum {
SCAN_SYN,
SCAN_NULL,
@ -12,5 +15,13 @@ typedef enum {
SCAN_TCP,
} e_scantype;
int routine(const char *ip_addr, e_scantype type, uint16_t min_port,
uint16_t max_port);
struct scan {
const struct host *host;
const char *dest_addr;
uint16_t port_start;
uint16_t port;
e_scantype type;
struct response *response;
};
int scan(const struct scan *data);