diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/socket.h | 1 | ||||
-rw-r--r-- | include/wildcard.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/socket.h b/include/socket.h index 399f84397..2dcece906 100644 --- a/include/socket.h +++ b/include/socket.h @@ -50,6 +50,7 @@ typedef struct in_addr insp_inaddr; #endif bool MatchCIDRBits(unsigned char* address, unsigned char* mask, unsigned int mask_bits); +bool MatchCIDR(const char* address, const char* cidr_mask); const char* insp_ntoa(insp_inaddr n); int insp_aton(const char* a, insp_inaddr* n); diff --git a/include/wildcard.h b/include/wildcard.h index 936bd9e23..02bc6342c 100644 --- a/include/wildcard.h +++ b/include/wildcard.h @@ -17,4 +17,5 @@ #include "inspircd_config.h" bool match(const char* str, const char* mask); +bool match(const char *str, const char *mask, bool use_cidr_match); |