#pragma once #include #include #include #include #include "scan.h" typedef enum { OPEN, CLOSE, FILTERED, UNFILTERED, OPENFILTERED, } e_state; struct response { uint16_t port; e_state state; char *service; }; 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);