diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 16:09:29 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 16:09:29 +0000 |
commit | f4a4901fee693791493c340fd380658a24d4cf26 (patch) | |
tree | 27a9d24c0d4bee19bfe0c4c33079e9e91a8b5912 /include | |
parent | a9621bc98996e08d86734e6848de13223341ea64 (diff) |
Support CIDR, CIDR zline, /oper and CIDR <connect> 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
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); |