fix: better response handling (to be tested once send packets will be done)
This commit is contained in:
@ -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);
|
||||
|
@ -3,7 +3,6 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include "host.h"
|
||||
#include "response.h"
|
||||
|
||||
typedef enum {
|
||||
SCAN_SYN,
|
||||
|
Reference in New Issue
Block a user