X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..40d5d119e57ec78928f7f15a7bd2ac46c7b0b151:/include/blacklist.h diff --git a/include/blacklist.h b/include/blacklist.h index 2fde255..0569d52 100644 --- a/include/blacklist.h +++ b/include/blacklist.h @@ -29,9 +29,10 @@ struct Blacklist { unsigned int status; /* If CONF_ILLEGAL, delete when no clients */ int refcount; - char host[HOSTLEN]; + char host[IRCD_RES_HOSTLEN + 1]; char reject_reason[IRCD_BUFSIZE]; unsigned int hits; + time_t lastwarning; }; /* A lookup in progress for a particular DNSBL for a particular client */ @@ -39,7 +40,7 @@ struct BlacklistClient { struct Blacklist *blacklist; struct Client *client_p; struct DNSQuery dns_query; - dlink_node node; + rb_dlink_node node; }; /* public interfaces */ @@ -49,6 +50,6 @@ void abort_blacklist_queries(struct Client *client_p); void unref_blacklist(struct Blacklist *blptr); void destroy_blacklists(void); -extern dlink_list blacklist_list; +extern rb_dlink_list blacklist_list; #endif