feature: start to implement responses
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user