| 33 |
|
*/ |
| 34 |
|
#ifndef INCLUDED_ircd_defs_h |
| 35 |
|
#define INCLUDED_ircd_defs_h |
| 36 |
< |
#include "inet_misc.h" |
| 37 |
< |
|
| 36 |
> |
#include "stdinc.h" |
| 37 |
|
/* Right out of the RFC */ |
| 38 |
|
#define IRCD_BUFSIZE 512 /* WARNING: *DONT* CHANGE THIS!!!! */ |
| 39 |
< |
#define HOSTLEN 63 /* Length of hostname. Updated to */ |
| 40 |
< |
/* comply with RFC1123 */ |
| 39 |
> |
#define HOSTLEN 63 /* Length of hostname. Updated to comply |
| 40 |
> |
with RFC 1123 */ |
| 41 |
> |
#define USERLEN 10 |
| 42 |
|
#define PORTNAMELEN 6 /* ":31337" */ |
| 43 |
|
|
| 44 |
< |
#define USERLEN 10 |
| 44 |
> |
#define HOSTIPLEN 45 /* sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") */ |
| 45 |
> |
#define PASSWDLEN 20 |
| 46 |
> |
#define IDLEN 12 /* this is the maximum length, not the actual |
| 47 |
> |
generated length; DO NOT CHANGE! */ |
| 48 |
|
#define REALLEN 50 |
| 49 |
|
#define KILLLEN 90 |
| 50 |
< |
#define CHANNELLEN 50 |
| 50 |
> |
#define LOCAL_CHANNELLEN 50 |
| 51 |
> |
#define CHANNELLEN 200 |
| 52 |
|
#define REASONLEN 120 |
| 53 |
|
#define KICKLEN 160 |
| 54 |
|
#define AWAYLEN 160 |
| 55 |
< |
|
| 52 |
< |
/* 23+1 for \0 */ |
| 53 |
< |
#define KEYLEN 24 |
| 54 |
< |
#define OPERNICKLEN NICKLEN*2 /* Length of OPERNICKs. */ |
| 55 |
> |
#define KEYLEN 23 |
| 56 |
|
|
| 57 |
|
#define USERHOST_REPLYLEN (NICKLEN+HOSTLEN+USERLEN+5) |
| 58 |
|
#define MAX_DATE_STRING 32 /* maximum string length for a date string */ |
| 59 |
< |
#define IRCD_MAXNS 2 /* Maximum number of nameservers in |
| 59 |
> |
#define IRCD_MAXNS 3 /* Maximum number of nameservers in |
| 60 |
|
/etc/resolv.conf we care about */ |
| 61 |
|
|
| 62 |
|
#define LOWEST_SAFE_FD 4 /* skip stdin, stdout, stderr, and profiler */ |
| 63 |
|
|
| 63 |
– |
#define PLATFORMLEN 200 /* platform string used in info response */ |
| 64 |
– |
|
| 65 |
– |
#ifdef _WIN32 |
| 66 |
– |
#define EAFNOSUPPORT WSAEAFNOSUPPORT |
| 67 |
– |
#define EALREADY WSAEALREADY |
| 68 |
– |
#define EINPROGRESS WSAEINPROGRESS |
| 69 |
– |
#define EISCONN WSAEISCONN |
| 70 |
– |
#define EMSGSIZE WSAEMSGSIZE |
| 71 |
– |
#define EWOULDBLOCK WSAEWOULDBLOCK |
| 72 |
– |
|
| 73 |
– |
#define _UTSNAME_LENGTH 65 |
| 74 |
– |
#define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH |
| 75 |
– |
#define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH |
| 76 |
– |
struct utsname |
| 77 |
– |
{ |
| 78 |
– |
char sysname[_UTSNAME_LENGTH]; |
| 79 |
– |
char nodename[_UTSNAME_NODENAME_LENGTH]; |
| 80 |
– |
char release[_UTSNAME_LENGTH]; |
| 81 |
– |
char version[_UTSNAME_LENGTH]; |
| 82 |
– |
char machine[_UTSNAME_LENGTH]; |
| 83 |
– |
char domainname[_UTSNAME_DOMAIN_LENGTH]; |
| 84 |
– |
}; |
| 85 |
– |
int uname (struct utsname *); |
| 86 |
– |
#endif |
| 87 |
– |
|
| 64 |
|
/* This is to get around the fact that some implementations have ss_len and |
| 65 |
|
* others do not |
| 66 |
|
*/ |
| 70 |
|
unsigned char ss_len; |
| 71 |
|
in_port_t ss_port; |
| 72 |
|
}; |
| 97 |
– |
|
| 98 |
– |
#define REJECT_HOLD_TIME GlobalSetOptions.rejecttime |
| 99 |
– |
|
| 73 |
|
#endif /* INCLUDED_ircd_defs_h */ |