]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/blacklist.h
Backed out changeset c04f6578869c
[irc/rqf/shadowircd.git] / include / blacklist.h
index 2fde255e905b94a7d28a6a733d84550e86b5efa4..a10f75f0828312a2d2b669d83b4cafe935b8ec5d 100644 (file)
@@ -19,7 +19,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: blacklist.h 2023 2006-09-02 23:47:27Z jilles $
  */
 
 #ifndef _BLACKLIST_H_
 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 +39,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 +49,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