42_ft_nmap/include/scan.h
2025-05-22 17:08:26 +02:00

28 lines
372 B
C

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