From fa4cf74ff2414d58a241292f17a25978866e146f Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Fri, 16 Jun 2023 09:29:37 +0100 Subject: [PATCH] iwyu: supernode.c --- src/supernode.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/supernode.c b/src/supernode.c index 8d7b7f9..3155d86 100644 --- a/src/supernode.c +++ b/src/supernode.c @@ -19,9 +19,30 @@ /* Supernode for n2n-2.x */ +#include // for isspace +#include // for errno +#include // for required_argument, getopt_long, no_arg... +#include // for signal, SIGHUP, SIGINT, SIGPIPE, SIGTERM +#include // for uint8_t, uint32_t +#include // for printf, NULL, fclose, fgets, fopen +#include // for exit, atoi, calloc, free +#include // for strerror, strlen, memcpy, strncpy, str... +#include // for time_t, u_char, u_int +#include // for time +#include // for _exit, daemon, getgid, getuid, setgid #include "n2n.h" // for n2n_sn_t, sn_community, traceEvent #include "pearson.h" // for pearson_hash_64 +#include "uthash.h" // for UT_hash_handle, HASH_ITER, HASH_ADD_STR +#ifdef WIN32 +#include +#include +#else +#include // for inet_addr +#include // for ntohl, INADDR_ANY, INADDR_NONE, in_addr_t +#include // for getpwnam, passwd +#include // for listen, AF_INET +#endif #define HASH_FIND_COMMUNITY(head, name, out) HASH_FIND_STR(head, name, out)