42_ft_nmap/include/scan.h

27 lines
344 B
C

#pragma once
#include <stdint.h>
#include "host.h"
typedef enum {
SCAN_NULL,
SCAN_SYN,
SCAN_ACK,
SCAN_FIN,
SCAN_XMAS,
SCAN_UDP,
SCAN_ALL,
} e_scantype;
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(struct scan *data);