#include "s_conf.h"
#include "s_newconf.h"
#include "send.h"
-#include "irc_string.h"
+#include "match.h"
#define BAD_CONF_CLASS -1
#define BAD_PING -2
{
struct Class *tmp;
- tmp = (struct Class *) rb_malloc(sizeof(struct Class));
+ tmp = rb_malloc(sizeof(struct Class));
ConFreq(tmp) = DEFAULT_CONNECTFREQUENCY;
PingFreq(tmp) = DEFAULT_PINGFREQUENCY;
PingFreq(tmpptr) = PingFreq(classptr);
MaxSendq(tmpptr) = MaxSendq(classptr);
ConFreq(tmpptr) = ConFreq(classptr);
- CidrBitlen(tmpptr) = CidrBitlen(classptr);
+ CidrIpv4Bitlen(tmpptr) = CidrIpv4Bitlen(classptr);
+ CidrIpv6Bitlen(tmpptr) = CidrIpv6Bitlen(classptr);
CidrAmount(tmpptr) = CidrAmount(classptr);
free_class(classptr);
*
* inputs - NONE
* output - NONE
- * side effects -
+ * side effects -
*/
void
check_class()
*
* inputs - NONE
* output - NONE
- * side effects -
+ * side effects -
*/
void
initclass()
{
cltmp = ptr->data;
- sendto_one_numeric(source_p, RPL_STATSYLINE,
+ sendto_one_numeric(source_p, RPL_STATSYLINE,
form_str(RPL_STATSYLINE),
- ClassName(cltmp), PingFreq(cltmp),
- ConFreq(cltmp), MaxUsers(cltmp),
- MaxSendq(cltmp),
+ ClassName(cltmp), PingFreq(cltmp),
+ ConFreq(cltmp), MaxUsers(cltmp),
+ MaxSendq(cltmp),
MaxLocal(cltmp), MaxIdent(cltmp),
MaxGlobal(cltmp), MaxIdent(cltmp),
CurrUsers(cltmp));
/* also output the default class */
sendto_one_numeric(source_p, RPL_STATSYLINE, form_str(RPL_STATSYLINE),
- ClassName(default_class), PingFreq(default_class),
- ConFreq(default_class), MaxUsers(default_class),
- MaxSendq(default_class),
+ ClassName(default_class), PingFreq(default_class),
+ ConFreq(default_class), MaxUsers(default_class),
+ MaxSendq(default_class),
MaxLocal(default_class), MaxIdent(default_class),
MaxGlobal(default_class), MaxIdent(default_class),
CurrUsers(default_class));