#include "ircd_chattr.h"
#include "ircd_string.h"
#include "ircd_snprintf.h"
-#include "support.h"
/*
* mmatch()
return bits;
}
+int check_if_ipmask(const char *mask)
+{
+ int has_digit = 0;
+ const char *p;
+
+ for (p = mask; *p; ++p)
+ if (*p != '*' && *p != '?' && *p != '.' && *p != '/')
+ {
+ if (!IsDigit(*p))
+ return 0;
+ has_digit = -1;
+ }
+
+ return has_digit;
+}
+
int ipmask_parse(const char *in, struct irc_in_addr *mask, unsigned char *bits_ptr)
{
struct in_addr ipv4;