From 290ac83788d93b389abe22188cbbe5064552408e Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Sun, 18 Jun 2023 10:58:00 +0100 Subject: [PATCH] iwyu: n2n-portfwd.c --- tools/n2n-portfwd.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tools/n2n-portfwd.c b/tools/n2n-portfwd.c index 5d7f698..0e1bdd4 100644 --- a/tools/n2n-portfwd.c +++ b/tools/n2n-portfwd.c @@ -17,10 +17,29 @@ */ +#include // for getopt_long +#include // for optarg +#include // for signal, SIGINT, SIGPIPE, SIGTERM, SIG_IGN +#include // for uint16_t, uint32_t, uint8_t +#include // for printf, snprintf +#include // for NULL, atoi, exit, size_t +#include // for strchr, strcmp +#include // for timeval +#include // for time, time_t +#include // for STDIN_FILENO, _exit #include "json.h" // for _jsonpair, json_object_t, json_free #include "n2n.h" // for traceEvent, setTraceLevel, getTraceLevel +#include "n2n_port_mapping.h" // for n2n_del_port_mapping, n2n_set_port_map... #include "random_numbers.h" // for n2n_rand, n2n_seed, n2n_srand +#ifdef WIN32 +#include +#include +#else +#include // for sockaddr_in, htonl, htons, INADDR_LOOP... +#include // for select, FD_ISSET, FD_SET, FD_ZERO, fd_set +#include // for connect, recv, send, socket, AF_INET +#endif #define WITH_PORT 1 #define CORRECT_TAG 2