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

23
include/response.h Normal file
View File

@ -0,0 +1,23 @@
#pragma once
#include <netinet/tcp.h>
#include <netinet/udp.h>
#include <stdint.h>
#include "scan.h"
typedef enum {
OPEN,
CLOSE,
FILTERED,
UNFILTERED,
} e_state;
struct response {
uint16_t port;
e_state state;
char *service;
};
void tcp_response(struct tcphdr *tcp, const struct scan *data);
void udp_response(struct udphdr *udp, const struct scan *data);