fix: better response handling (to be tested once send packets will be done)

This commit is contained in:
0x35c
2025-05-23 11:33:55 +02:00
parent 84d5960900
commit 9378251248
4 changed files with 59 additions and 22 deletions

View File

@ -1,5 +1,6 @@
#pragma once
#include <netinet/ip_icmp.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#include <stdint.h>
@ -11,6 +12,7 @@ typedef enum {
CLOSE,
FILTERED,
UNFILTERED,
OPENFILTERED,
} e_state;
struct response {
@ -19,5 +21,6 @@ struct response {
char *service;
};
void tcp_response(struct tcphdr *tcp, const struct scan *data);
void udp_response(struct udphdr *udp, const struct scan *data);
void tcp_response(const struct tcphdr *tcphdr, const struct scan *data);
void udp_response(const struct udphdr *udphdr, const struct scan *data);
void icmp_response(const struct icmphdr *icmphdr, const struct scan *data);

View File

@ -3,7 +3,6 @@
#include <stdint.h>
#include "host.h"
#include "response.h"
typedef enum {
SCAN_SYN,