]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/reslib.h
Added tag shadowircd-6.3.0-RC1 for changeset 5d25c87c7895
[irc/rqf/shadowircd.git] / include / reslib.h
index 38e061b9f14a0aea634c39583a43b7dcd6c320d3..031f22f6c8fa5bb59371c4f0d3e695909a921788 100644 (file)
@@ -1,12 +1,16 @@
 /*
  * include/irc_reslib.h
  *
- * $Id: reslib.h 446 2006-02-12 02:46:54Z db $
  */
 
 #ifndef _CHARYBDIS_RESLIB_H
 #define _CHARYBDIS_RESLIB_H
 
+/* Longest hostname we're willing to work with.
+ * Due to DNSBLs this is more than HOSTLEN.
+ */
+#define IRCD_RES_HOSTLEN 255
+
 /* Here we define some values lifted from nameser.h */
 #define NS_NOTIFY_OP 4
 #define NS_INT16SZ 2
@@ -115,4 +119,6 @@ extern void irc_ns_put16(unsigned int src, unsigned char *dst);
 extern void irc_ns_put32(unsigned long src, unsigned char *dst);
 extern int irc_res_mkquery(const char *dname, int class, int type, unsigned char *buf, int buflen);
 
+extern char irc_domain[IRCD_RES_HOSTLEN + 1];
+
 #endif