1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
/*
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
*
* Copyright (c) 1997-2014 ircd-hybrid development team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
/*! \file ircd_defs.h
* \brief A header for ircd global definitions.
* \version $Id$
*/
/* ircd_defs.h - Global size definitions for record entries used
* througout ircd. Please think 3 times before adding anything to this
* file.
*/
#ifndef INCLUDED_ircd_defs_h
#define INCLUDED_ircd_defs_h
#include "stdinc.h"
/* Right out of the RFC */
#define IRCD_BUFSIZE 512 /* WARNING: *DONT* CHANGE THIS!!!! */
#define HOSTLEN 63 /* Length of hostname. Updated to comply
with RFC 1123 */
#define NICKLEN 30
#define USERLEN 10
#define SVIDLEN 30
#define PORTNAMELEN 6 /* ":31337" */
#define HOSTIPLEN 45 /* sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") */
#define PASSWDLEN 128
#define IDLEN 12 /* this is the maximum length, not the actual
generated length; DO NOT CHANGE! */
#define REALLEN 50
#define LOCAL_CHANNELLEN 50
#define CHANNELLEN 200
#define TOPICLEN 300
#define KILLLEN 180
#define REASONLEN 180
#define KICKLEN 180
#define AWAYLEN 180
#define KEYLEN 23
#define USERHOST_REPLYLEN (NICKLEN+HOSTLEN+USERLEN+5)
#define MAX_DATE_STRING 32 /* maximum string length for a date string */
#define IRCD_MAXNS 3 /* Maximum number of nameservers in
/etc/resolv.conf we care about */
#define LOWEST_SAFE_FD 4 /* skip stdin, stdout, stderr, and profiler */
/* This is to get around the fact that some implementations have ss_len and
* others do not
*/
struct irc_ssaddr
{
struct sockaddr_storage ss;
unsigned char ss_len;
in_port_t ss_port;
};
#endif /* INCLUDED_ircd_defs_h */
|