From f4a4901fee693791493c340fd380658a24d4cf26 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 6 Aug 2006 16:09:29 +0000 Subject: Support CIDR, CIDR zline, /oper and CIDR tags. NOTE: With CIDR oper, ident field is not supported (yet) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4732 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socket.h | 1 + include/wildcard.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') 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); -- cgit v1.2.3