X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/db6b03137db57c88cf53978216b40b88bdcd7d35..cffd37ee3718677abdb8df905abdb8660f3af8da:/include/ircd_defs.h diff --git a/include/ircd_defs.h b/include/ircd_defs.h index 7105a99..686cea4 100644 --- a/include/ircd_defs.h +++ b/include/ircd_defs.h @@ -59,7 +59,7 @@ #define IRC_DEPRECATED #endif -#include "s_log.h" +#include "logger.h" #include "send.h" #ifdef SOFT_ASSERT @@ -94,14 +94,6 @@ # error Incorrect config.h for this revision of ircd. #endif -/* - * This defines the version of the data structures used in the ircd. - * In the event of a mismatch (i.e. this is incremented due to a major - * change that cannot be accomidated for in the ircd), then a hard - * restart occurs. - */ -#define CHARYBDIS_DV 0x00010200 /* 1.2.0 */ - #define HOSTLEN 63 /* Length of hostname. Updated to */ /* comply with RFC1123 */ @@ -116,7 +108,7 @@ * takes at most 246 bytes (including CRLF and '\0') and together with the * quit reason should fit in 512 */ #define REASONLEN 260 /* kick/part/quit */ -#define BANREASONLEN 390 /* kline/dline/gline */ +#define BANREASONLEN 390 /* kline/dline */ #define AWAYLEN TOPICLEN #define KILLLEN 200 /* with Killed (nick ()) added this should fit in quit */ @@ -139,31 +131,20 @@ #define CLIENT_PARSE_ERROR -1 #define CLIENT_OK 1 -#ifdef IPV6 +#ifdef RB_IPV6 #ifndef AF_INET6 #error "AF_INET6 not defined" #endif -#else /* #ifdef IPV6 */ +#else /* #ifdef RB_IPV6 */ #ifndef AF_INET6 #define AF_INET6 AF_MAX /* Dummy AF_INET6 declaration */ #endif -#endif /* #ifdef IPV6 */ - - -#ifdef IPV6 -#define irc_sockaddr_storage sockaddr_storage -#else -#define irc_sockaddr_storage sockaddr -#define ss_family sa_family -#ifdef SOCKADDR_IN_HAS_LEN -#define ss_len sa_len -#endif -#endif +#endif /* #ifdef RB_IPV6 */ -#ifdef IPV6 +#ifdef RB_IPV6 #define PATRICIA_BITS 128 #else #define PATRICIA_BITS 32