zapret/tpws/ipset.h

13 lines
389 B
C
Raw Normal View History

2024-10-14 11:58:31 +00:00
#pragma once
#include <stdbool.h>
#include <arpa/inet.h>
#include "params.h"
#include "pools.h"
bool LoadAllIpsets();
bool IpsetCheck(const struct desync_profile *dp, const struct in_addr *ipv4, const struct in6_addr *ipv6);
struct ipset_file *RegisterIpset(struct desync_profile *dp, bool bExclude, const char *filename);
void IpsetsDebug();
2024-11-24 13:02:51 +00:00
bool AppendIpsetItem(ipset *ips, char *ip);