2024-10-16 15:42:59 +05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
#include "params.h"
|
|
|
|
#include "pools.h"
|
|
|
|
|
2024-10-29 15:30:58 +05:00
|
|
|
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 18:48:14 +05:00
|
|
|
bool AppendIpsetItem(ipset *ips, char *ip);
|
2025-01-24 13:12:56 +05:00
|
|
|
|
|
|
|
#define ResetAllIpsetModTime() ipset_files_reset_modtime(¶ms.ipsets)
|