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