tpws: move portfilter code

This commit is contained in:
bol-van
2024-04-26 17:23:03 +03:00
parent f48617e1a3
commit 147af10b61
5 changed files with 41 additions and 43 deletions

View File

@@ -8,6 +8,7 @@
#include <time.h>
#include "tpws.h"
#include "pools.h"
#include "helpers.h"
#define HOSTLIST_AUTO_FAIL_THRESHOLD_DEFAULT 3
#define HOSTLIST_AUTO_FAIL_TIME_DEFAULT 60
@@ -25,12 +26,6 @@ struct bind_s
int bind_wait_ifup,bind_wait_ip,bind_wait_ip_ll;
};
typedef struct
{
uint16_t from,to;
bool neg;
} port_filter;
struct params_s
{
struct bind_s binds[MAX_BINDS];