Adaugă codul complet al proiectului underchat-ircd

This commit is contained in:
mihaiitdata committed 2026-02-13 00:04:12 +02:00
1 parent caba5224bf
commit 5fdc1cc27c
462 files changed
+164488

No files matched your search

+478
View File
@@ -0,0 +1,478 @@
/************************************************************************
* IRC - Internet Relay Chat, 2.4.notes
* Copyright (C) 1990 Markku Savela
*
* 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
IRC 2.4 release notes 6 May 1990/msa (Markku.Savela@vtt.fi)
============================================================
This document explains the changes I have done up to this
point. Some additional changes and packaging has been made by
Chelsea (chelsea@earth.cchem.berkeley.edu). This is personal
view of the changes.
CHANGES TO LAST THE OFFICIAL RELEASE (2.2PL1)
This release of irc2.4 is based to 2.2PL1 release (see the
HISTORY chapter later in this document). Aside from fixing the
bugs, this version is in many ways different from the 2.2PL1.
The purpose of the most changes is to make it easier to run an
IRC server. Normal users benefit from these changes indirectly
by getting a better maintained server.
1. Changes visible to normal users
Even while mainly fixing bugs, some user visible changes have
crept in too.
1.1 General note on wildcards
Many commands accept now wildcard matching where applicable. All
compares are case insensitive (e.g. "a" == "A"). The wild cards are
? matches any single character
* matches any number of characters, also empty
string. [PL1 had a bug, which caused "*du*"
not match "....edu"].
1.2 Server supported wildcards for "/who mask" command.
Protocol message is "WHO mask", where mask can be
empty
0 List all users [No change from PL1]
* List all users on the same channel where the user is
(or all, if user is on 0) [No change from PL1].
number List all users on the specified channel [No change
from PL1]. Note, if the "mask" begings with a digit,
this form is assumed, and the remainder of mask is
ignored, e.g. "/who 12*.fi" gives all people from
channel 12 and ignores the "*.fi" part.
mask If the mask is any string, it will be compared
*separately* to each information field of the user
and if a match is found in any field, that user
is included into the list. The fields searched
are
nickname
loginname (account name)
real name (text shown in parenthesis)
hostname (users machine)
servername (server he/she is using)
Note: servername is not usually shown on WHO output,
but is included in anyway. Example: finding all users
somehow connected with Finnish sites, can be achieved
with mask "*.fi".
1.3 Changes to /whois command
As WHO, also /whois accepts wild cards as a parameters. WHOIS
returns information for all users whose nickname matches the specified
mask.
WHOIS automaticly calls WHOWAS [see below], if the attempted nickname
is not found.
1.4 Short term "WHOWAS" history
The server has a short in memory cache of the recent nickname changes
(the current default is set to 200 last changes). The design goal of
this is that it remembers changes in last few minutes, there is no
intention of this to be a long term history. That must be a separate
project, although it could use the hooks provided by this service.
"WHOWAS nickname" queries this cache and returns about the same
information that WHOIS would do, if the nickname is found. Wildcards
are not accepted here, this is a specifically designed feature. If
the name is not found, WHOWAS doesn't reply anything. This is because
the most useful use of WHOWAS is implicitly through "WHOIS".
This history is also implicitly utilized by KILL command.
1.5 New SERVER-SERVER/SERVER-CLIENT protocol message WALLOPS
The message ":source WALLOPS :Message" sends the message text
to all operators that are currently online. Any user can use this
command, it's not restricted. How this function is activated, depends
on the client, but if nothing else works, "/quote wallops text" should.
NOTE:This function will not be fully operational until *ALL*
servers have upgraded to version 2.4. Also, operators
must be using a client that recognizes this command.
This is really a hasty addition. But, done this way it follows
the general IRC message philosophy, where messages are sent only
to links where they are needed (e.g. WALLOPS goes only to servers
that have opers online--it's not broadcast to every server).
1.6 General use of wildcarding in server queries
All commands that previously took a servername as a parameter,
now accept also a wildcarded mask. The mask is replaced with
the first matching servername. The following user level commands
are affected
/admin server -- administrative info
/time server -- local time
/version server -- the server version
/motd server -- "the message of the day"
/info server -- info (usually same on same server version)
/stat f server -- statistics information
/users server -- users logged on server machine
Note: Remote capability is a new feature for "info" and "stat"
commands. Until all servers have upgraded, these commands may not
reach the intended target and may return the information from some
intermediate server.
1.7 Marking user AWAY
v2.2PL1 version and earlier showed the AWAY-state (G) only for
the local users of the same server. AWAY status could be queried
only by sending a message to a user. This release (or since msa.4)
broadcasts the away status to every server and the commands /WHO and
/WHOIS give this information reliably.
A side effect of this change is: when a user marks himself/herself
as AWAY, all pre-msa.4 servers that are reached will send back an
acknowlegde message. Until all servers are upgraged, use of AWAY
is somewhat inconvenient. If you get extra messages from AWAY,
they also contain the server information. Use /admin command and
send a *friendly* request for the admin to upgrage his/her server
to a working version, namely 2.4 :)
1.8 Servers don't restrict characters within messages
The parameter fields of the messages can now contain any characters
in range 1-255, except '\r', '\n' and '\0'. The client programs should
by default filter away the "dangerous" control characters, but intelligent
clients can utilize this change and allow exchanges with foreign
8-bit (or wider) charactersets. (The actual command parts must still be
represented with the ordinary 7-bit characters.)
2. Changes visible to the server administrator
2.1 Identifying servers
Servers/clients have now always two names (it was this way in
PL1, but I think this version makes the idea more clear):
Announced Name:
The official name of the server (the name you use in
/time, /quote connect, etc) or users nickname. Servers
name is usually the hostname, but can actually be almost
any string of characters resembling hostname. This one
is given in M-line of ircd.conf.
Socket hostname:
Socket hostname of the server or client. This is the hostname
of the connecting server/client and this is resolved from the
connection. If resolve cannot be done, ircd defaults to using
numeric IP-address. *ALL* access checks are based on this
name, especially noteworthy fact, if your resolver cannot find
hostnames by IP-address, you must allow the access by IP-numbers
in your ircd.conf.
In many places, where servers name is shown, actually both are
shown. The general format of the displayed name is
AnnouncedName[SocketHostName]
When a connection is yet unkown, there is no AnnouncedName, and if the
AnnouncedName is the same as SocketHostName, the "[..]"-part is omitted.
2.2 Many notices to local operators
If an oper is signed on the server, he/she will receive many
notices about exceptional conditions and servers actions. When
something goes wrong, it should be much easier to fix the problems.
Few often occurring, inportant error messages are
"Write error to SERVERNAME, closing link"
write() to socket returned with an error. Server is
closing the link. This means usually network problems
which you can do nothing about.
"Max buffering limit exceeded for SERVERNAME"
This is the situation where old server would have been
"frozen". The socket buffers in your OS have been filled and
even servers own predefined internal buffering MAX for a link
has been exceeded. Exceeding this limit most likely means
that the link is really dead, so the server closes the link
and scratches all queued output for it. If the limit is
set high ( > 20000 bytes), you won't usually see this, but
just "No responce from SERVERNAME, closing link" as the
server does not reply to PING as it should.
"Link SERVERNAME cancelled, server SERVERNAME already exits"
Two different servers from your net fragment attempted
to connect same other net fragment about the same time
and this collision is detected at your server. IRC routing
does not allow loops, the link causing the loop is closed.
(Which of the two links gets closed is mostly determined
by pure chance and timing--you may lose a better link this
way. Collisions should be rare in normal operation, if
the timers in "config.h" are not messed up too much...)
Of course, you get this too, if you try to connect to a
server that is already connected by some other route. In
that case your attempted connection is just safely cancelled.
The notices attempt to be self explaining.
2.3 Links statistics collecting
IRCD now counts the bytes and messages transmitted to each open
link. This information can be output with a command "/stats l"
("/stats" or "/stat m" will give the old message count statistics).
Sample output
Link SendQ SendM SendBytes RcveM RcveBytes Open since
oddjob.uchicago 0 203 8067 772 34321 Sun May 6 02:15:45 1990
cs.hut.fi[sauna 0 1916 79798 94 3082 Sun May 6 01:51:25 1990
otax.tky.hut.fi 0 3722 151511 426 22690 Sun May 6 00:25:54 1990
nada.kth.se 0 8775 355811 5333 223853 Sat May 5 14:11:49 1990
vehka.cs.uta.fi 0 23816 882000 901 41156 Fri May 4 22:50:23 1990
lut.fi 0 25145 943765 1068 35020 Fri May 4 22:34:16 1990
kreeta.helsinki 0 24286 899191 957 47085 Fri May 4 22:33:28 1990
naakka.tut.fi 0 27754 1067302 8288 362960 Fri May 4 22:33:14 1990
joyx.joensuu.fi 0 30003 1172949 2300 80053 Fri May 4 22:33:05 1990
tel4.tel.vtt.fi 04083771 167473890 863475 35022755 Mon Apr 23 00:15:17 1990
| | | | | |
| | | | | Link established
| | | | The number of bytes received
| | | The number protocol messages received
| | The number of bytes transmitted
| The number of protocol messages transmitted
The amount of queued data in bytes (if socket is hung)
The last row (with the local servername) contains the total
cumulative counts for all connections since the server was started.
One can query the statistics of a remote server by adding the servers
name to the command "/stat l servername". Of course, this only works,
if all intermediate servers have upgraged. The first "old" server
will stop the propagation and return the message counts by default.
2.4 Connecting servers
An oper can manually activate a connection phase to any server
defined in ircd.conf C-lines (to successfully complete the connection,
the N-line must be present too). The message achieving this is
CONNECT servername portnumber
where servername may be a mask string containing wildcards. This
name is matched against entries in ircd.conf (notice: the testing
is made in reverse order, e.g. the last C-line in ircd.conf is tested
first). If portnumber is omitted, the ircd uses the one given in the
found C-line. If the C-line does not have the portnumber, the compiled
default will be used (PORTNUM from config.h).
This release allows also for remote connecting. An oper can send
a connect request to remote server with
CONNECT servername portnumber remoteserver
This command is passed to the 'remoteserver' and it then tries to
execute it like it was given locally. (If there are opers online on
that server, they will get a notice about this happening.) Note, that
one can remotely connect only what is defined in ircd.conf. Usually
one needs and should use this only for immediate your neighbours. Nobody
should randomly go and give connect requests to distant servers, unless
one knows it's absolutely necessary and is very familiar about the
linking setup there.
2.4 Terminating connections
The SQUIT command in PL1 was not intended to be used manually and
was very dangerous to use (it also created so called "ghost servers").
Since msa.4, the SQUIT has been safer to use manually.
"SQUIT z" s a
\ /
\ /
------- x ------- y --| |-- z ------- b
/ ^ \
/ | \
p c
"SQUIT z" will break the link between "y" and "z" if injected
into system from "s". After that the net will be in two fragmets,
broken between "y" and "z". Server "z" never sees the actual
SQUIT, all it observers is that the link to "y" suddenly closes
(opers on z would see it as "Server y closed the connection"
notice. Opers on y would see it as "Received remote SQUIT from
x", note that the actual source "s" is not identified in the
current version--for reasons too complicated to be explained
here).
*WARNING* *WARNING* If the server "y" is still running pre-msa.4
(like PL1), don't *EVER* issue a SQUIT for its links (unless the
link is to a leaf node or verifiably a "ghost server").
Note, that when the link between "y" and "z" breaks, y will spit
out SQUIT's for "z", "a", "b" and "c" to "x". At same time "z"
is sending SQUIT's for "x", "s", "p", etc to "a", "b" and "c".
SQUIT is normally generated by servers automaticly, it's just
a later modification (msa.4) that allows an OPER to use this
same message to "simulate" a link break at certain point.
*IMPORTANT* If server "z" has configuration "C:y::y:6667", it
automaticly attempts to reconnect after a short delay (currently
10 seconds), but only *if* the connection has been up long enough
reliably (currently set to 10 minutes). If the thus formed link is
squit another time, it will not attempt to come back immeatedly.
This gives an oper time to reconfigure the links if that first
short delay is not enough.
As in all commands, also SQUIT accepts wildcards, but be careful to
give sufficient identification. SQUIT of wrong server is not nice...
2.5 KILL message
KILL will implicitly use the history database. If a KILL is
issued for a nick that has been changed to another, the server
will automaticly re-issue the kill with the new nickname, if
the change has happened recently (current value should be 90
seconds). If a "terrorist" is clearly distrupting channel by
bombarding it with garbage from negative channels and changing
nick all time, there is no need to consult the "WHOWAS" data
base, just use the nickname that was used to send the garbage
and ircd hunts the culprit down. When this change of target
happens, the oper issuing the kill is notified.
NOTE: With automatic, kill-proof-reconnecting clients, the
value of KILL is becoming insignificant...
2.6 Changing the server defaults from the command line
The servers activation command is now
ircd[ -f configfile][ -h servername][ -p portnumber][ -x debuglevel]
where parameters can be given in any order. If the "configfile"
is defined, it will override the default specified in the file
"config.h". If "servername" is defined, it will override the
one defined in the M-line on the configuration line. "portnumber"
will override the compiled default (from "config.h") or the
one from the M-line of the configuration file. The "debuglevel"
will determine the amout of logging the server does into a
log file that has been define in "config.h". The "debuglevel"
should never be defined for a server running normally, it can
quickly generate megabytes of trace. Usually needed only when
the server is incapable of starting properly at all, then one
run with "-x9" usually is enough to reveal the problem.
3. General cleaning up and commenting the code
This issue is controversial. My way of fixing bugs is not just
fix them, I also want to program defensively, make it difficult to
make new errors. Thus I have heavily reformatted and reorganized
those files that I have had to touch. Some functions have been
renamed intentionally to catch all uses of those functions [because
the functions semantics or calling sequences have been changed].
This release (2.4) will be the last IRC version I'm contributing
to. If you have any wishes or complains about the code or functioining
of IRC, use the source or ask whomever it happens to be the current
developer.
HISTORY
There have been many different versions of IRC and many of those
versions are still in use. The following attempt to bring some
clarification to the versions. This starts from 2.01.6, hopefully
no servers are running older versions...
...
...
2.01.6 A version from WiZ in summer 1989
...
2.01t6 A series of releases, which contained minor
2.01T6 adjustements and bug fixes to the base version.
2.01u6 Some of those fixes caused extra errors, of
2.01U6 this series versions 2.01U6 and 2.01v6 are at
2.01v6 least known to be rather stable.
2.1.0 Mike Bolotski created these versions from the sources
2.1.1 of 2.01U6, but unfortunale some devious bug crept in
and caused a lots of linking problems (the nasty "ghost
server problem" splintered the net constantly). These
versions must be deleted on sight :) [Autumn 1989]
2.2 This version is the 2.01v6 sources repackaged into
multiple directories by Mike again. Probably nobody
is running this base version, because is was promptly
followed by two patch releases [Autumn 1989]
2.2PL0 These two are the last major "official" releases
2.2PL1 and most of the servers upgraged to either of
these.
2.2msa Unfortunately 2.2PL1 version had a tendency to die
mysteriously very often. So, I started to look into the
code from March 1990 and that resulted a series of
patches to the 2.2PL1 server code, but finally
decided to release full server code releases of which
few have got wider distribution
2.2msa.4
Has most of the known PL1 bugs fixed and seems
to be very reliable. But once servers started
staying up, a new problem appeared: socket
buffers started getting full and servers tended
to freeze very often for long intervals.
2.3alpha
2.3 Is an attempt to make an official release from 2.2msa.4
code, but hassles with changed copyrights make this
version unacceptable. Besides, 2.3alpha or 2.2msa.4 are
now obsolete, old versions :)
2.2msa.x
To solve the freezing problems, the server code is changed
to use non-blocking sockets.
2.2msa.7
2.2msa.9
Are intermediate test versions, of which .9 seems
to have most of the problems solved.
2.2msa.10
Never released. This is slightly improved version
of msa.9, some new features.
2.4 Is a release which combines 2.2msa.10 and Chelsea's
modifications to the server. Also, this release has
once again reorganized the directories and makefiles.
-- msa (Markku.Savela@vtt.fi)
+128
View File
@@ -0,0 +1,128 @@
* WHOREPLY and NAMREPLY become numberics instead of strings.
* msa's patches to kick/mode to attempt to follow nick name changes
* spike's patches to get SUMMON to find last idle tty
* melazy's various DNS improvements.
* pjg's saber C check
* prefix changed for all server->client messages in which the origin
of the sender is a client to appear as follows:
nick!user@host
* TRACE output changed.
* # channel topics broadcast
* +-numeric channels removed from server
* numerics for TRACE output 201-209
* new switches for STATS: i,k,q,y
* numerics for stats output 211-219
* MODE changed to also operate on users
* deoper added as both mode and direct command. deoper sends out
":user OPER -" to other servers. (from Kaizzu)
* XTRA/VOICE/GRAPH removed.
* MODE +a scrapped.
* added custom ANSI-compatible ctype macros to ensure speed
* user modes i,w,s,o implemented as follows:
i - invisible. over rides any channel mode for those external
to your channel. you are invisible.
w - receive wallops
s - receive local service notices (errors, etc)
o - operator flag. (can not be set currently except using the
OPER command).
* MODE +b added to ban a user from a channel using "nick!user@host" as
the mask to match to the user. If the user matches the ban mask they
are not allowed in. MODE +b with no parameters returns the list of
ban masks currently in place. MODE +b <mask> and MODE -b <mask>
add/delete a ban mask respectively.
Thanks to HulkHogan (andy@lingua.cltr.uq.oz.au) for defining what
we needed here and the 'BlackBall' approach.
* Operator passwords may now be stored in the ircd.conf file as the
encrypted plaintext. Crypt(3) is used to generate the matching
plaintext from the OPER command. Thanks to the following people
for help with this:
Sean Batt (sean@coombs.anu.edu.au),
Andy. M. Jones (andy@lingua.cltr.uq.oz.au),
Nelson Minar (minar@reed.edu).
* Server now creates "ircd.pid" file when booted. Holds the current
pid of the server.
* Each O and I line in the ircd.conf file may be linked only a number
of times equal to or the max. links value for the class they belong
to.
* Server stores results of any successful DNS lookups for servers so
that future lookups are not needed. A rehash will wipe all previous
lookup results and cause the server to start over. The server will
attempt to lookup each hostname in a C/N line on booting. This may
cause a delay during starting the server.
* All functions should be of the form "function_name", macros of the
form "MacroName" and constants as CONSTANT.
* Services are now treated with some respect. A service is associated
with an S-line in the ircd.conf. A service must send a NICK/SERVICE
pair on connecting to achieve service status.
* JOIN/PART now accept a list of channels in the first parameter with
each separated by a ",". eg "JOIN #foo,#bar,#foobar"
* A hopcount for the distance to nicknames and servers has been
introduced (for better or worse). It is passed as the second
parameter to both NICK and SERVER.
WHO and LINKS both report the hopcount in the info field.
* Default for WALL and WALLOPS set "off"
* rearranged config.h
* ISON now returns nicknames with the actual case, i.e.
ISON wiz will answer WiZ
New into 2.7.1
* STATS u, r, z
u - uptime
r - CPU useage stats
z - counts and shows current memory useage
r & z are only available if DEBUGMODE is defined in config.h
* GETHOST which forces all reverse lookups of ip#'s to also match
when doing a forward lookup of the hostname returned.
* SENDQ_ALWAYS buffering policy for sending data over links.
(Server tries to buffer as much data as possible before attempting
a write).
New into 2.7.2
* NOTE (once again appears and in much better state)
* WHOWAS gives a list of known users of the nick in question
rather than just the most recent.
* Server can accept both server and client connections via a unix
domain socket. This provides greater security and reliability for
connections between the host and itself. (#define UNIXPORT)
* STATS C reports L-lines: New Numeric 241
* #define for showing all users the invisible count from LUSERS
+32
View File
@@ -0,0 +1,32 @@
#
# ChangeLog for Undernet ircu Servers
#
# $Id: ChangeLog.07,v 1.2 2003-01-08 03:17:18 klmitch Exp $
#
# Please insert new entries on the top of the list, a one or two line comment
# is sufficient. Please include your name on the entries we know who to blame.
# Please keep lines < 80 chars.
#-------------------------------------------------------------------------------
* Added hostname hiding compatible with ircu2.10.10 to allow host hiding
for transitioning services, back out pline8 for now. --Bleep
* Fixed default behavior for BADCHAN. supposed to DEFAULT yes, however
should not change each time a make config is done. -- WT
* doc/readme.www: add Runs link update patch for linux info. --Bleep
* channel.c, channel.h: add David M's fixup for local channel oper overrides.
--Bleep
* s_misc.c (date): add Runs Y2K patch --Bleep
* hash.c (hChangeClient): bug fix. If the client pointer matched the first
pointer in the bucket, the change was ignored (returned 0), leaving stale
values in the hash table, eventually causing the server to die for mysterious
reasons. Bug discovered by Quant and Isomer --Bleep
* config-sh.in, channel.h, numeric.h, channel.c, s_debug.c, s_err.c:
add lchanmode patch by CaptJay, add symbols to incredibly long
feature string. Bump patchlevel to .03 --Bleep
* list.h list.c s_conf.h s_conf.c opercmds.c:
badchan patch 2 seperate settings, allow global, and allow local.
currently allow_local is 'unapproved' for use on undernet. --WildThang
* ircd.h, s_serv.h, s_debug.h, ircd.c, s_user.c, s_bsd.c:
removed STAT_MASTER/BOOT_OPER code, original patch by Isomer --Bleep
* s_user.c (m_nick): removed redundant check for acptr --Bleep
* ChangeLog (file): added ChangeLog, and BUGS files, import to ircu2.10 --Bleep
+696
View File
@@ -0,0 +1,696 @@
#
# ChangeLog for ircu2.10.10
#
# $Id: ChangeLog.10,v 1.2 2003-01-08 03:17:18 klmitch Exp $
#
# Insert new changes at beginning of the change list.
#
-------------------------- Released 2.10.10.pl15
* Fiddle with /KILL and various exits to make the user experience uniform,
no matter who's doing the killing or where. Previously, differences in
QUITs and in the messages sent to the killed client could help make a
partial map of the network; now that these messages are all uniform, there
is no way to tell. -Kev
* Split ISUPPORT numeric into two numerics, so as not to exceed the 15
parameter limit imposed by the RFC -Kev
* Turn on HEAD_IN_SAND_REMOTE...oops -Kev
* Send prefixed error messages to other servers, so ERROR doesn't get
interpreted as a prefix -Kev
* Reverse sense of HEAD_IN_SAND_WHO_HOPCOUNT to do what was intended; use a
hopcount of 0 if user is using /who on him/herself -Kev
* Allow a user to see his/her own idle time without having to do
/whois <nick> <nick>; correct spelling of HEAD_IN_SAND_IDLETIME to
HEAD_IN_SAND_WHOIS_IDLETIME -Kev
* Fix a missing ')' in the idle time stuff -Kev
* Include ircd_policy.h in whocmds.c -Kev
* Fixed bug in idle time, thanks hektik -- Isomer
* Update 005 to be compliant with other networks -- Isomer
* Hide hop count -- Isomer
* Hide idletime unless you explicitly ask for it -- Isomer
* /wallops and /wallusers would dump core because of the previous change--my
bad. Now only include user@host when sptr is a client. -Kev
* /wallops and /wallusers would leave out the user@host--noticed because
pl14 broke my script. Fixed. -Kev
* Fix several compile warnings, including the one in table_gen.c -Kev
* Fix a bug in m_silence.c that rendered it uncompilable -Kev
* Hopefully make mode clears during bursts appear to originate from local
server -Kev
* Fix several things to send server<->server protocol messages with numeric
origins -Kev
* Rework directed notices and mass-messages to use numerics and tokens
as appropriate; the latter required the modifications to
sendto_match_butone() -Kev
* Redefined how sendto_match_butone() works, since it's only used with
PRIVMSG or NOTICE -Kev
* Bumped patchlevel to pl15(development) -Kev
* Corrected reverse-sense of HEAD_IN_SAND_REMOTE test in m_whois() -Kev
* Clean up logic in m_whowas(), corrected numeric reply -Kev
* Finally fixed /whois to tell you what your own server is -Kev
* Clean up logic in add_banid() with some well-placed DupString()'s -Kev
* Hide which server performed a nick collision kill -- Isomer
* To allow for remote whois not giving away the remote server, all remote
numerics to clients are remapped to come from the local server :/ -- Isomer
* All remote queries are disabled for users, except /whois -- Isomer
(/whois now uses the second parameter for which server to use, ie:
/whois <ignored> <nick> will query <nick>'s server.)
* Fixed /who showing server name -- Isomer
* Fixed burst showing linking server -- Isomer
* Fixed burst bans showing linked server -- Isomer
* Fixed /whowas showing server name -- Isomer
-------------------------- Released 2.10.10.pl14 (You got any issues with that punk?)
* Changed (then fixed) /LINKS to output an empty links list -- Isomer
* Make netsplit server notice say the right thing
* Final fix for HEAD_IN_SAND_WHOIS_SERVERNAME
* Fix a bug with implementation of HEAD_IN_SAND_NETSPLIT
* Permit users to find out what server they're on, since they already
know -- Kev
* Added HEAD_IN_SAND_WHO_SERVERNAME to cover final source of server
names -- Kev
* Fixed wallops, wallusers now sends wallops to local clients,
wallusers to servers.
* Added host to /kill messages -- Isomer
* Fixed whois (opers can see server names) -- Isomer
* Implement walluser -- Bleep
* stats fixed -- Isomer
* trace disabled from non opers -- Isomer
* server name removed from whois (but not /who, shrug!) -- Isomer
* netsplits are now represented with "*.net *.split" -- Isomer
* Done /links -- Isomer
* Modifications to map as suggested by nighty -- Isomer
* Wallops is the only code that uses sendto_ops_butone now, this
isolates wallops entirely. No server notices sent by wallops.
* HEAD_IN_SAND_SNOTICES done -- Bleep
* HEAD_IN_SAND_WALLOPS done -- Bleep
* HEAD_IN_SAND_DESYNC done -- Bleep
* HEAD_IN_SAND_MAP done -- Isomer
* According to CFV-165, buring our head in the sand to try and
* hide from DoS - First pass -- Isomer
* As requested by hop: hidden keys are shown as "*" not "" -- Isomer
* As requested by Buff: allow admins to *disable* below behavour -- Isomer
* As requested by Adriel, compile time option to disable mo_wallops
-- Isomer
-------------------------- Released 2.10.10.pl13
* Don't allow two copies of the server to start -- Isomer/Kev
-------------------------- Released 2.10.10.pl12
* Release 2.10.10.pl12 before Mr_RIP threatens physical violence -- Isomer
* Don't 'hubhide' nick's in /trace (oops!) -- Isomer
* Allow K:line by realname, updated client connection logging -- Gte-
* ircd/m_join.c: use ERR_BANNEDFROMCHAN instead of ERR_BADCHANNAME -- Kev
--------------------------- Released 2.10.10.pl11.(release)
* Fixed G-lined (reason), thanks to dfx -- Isomer
* Added reason to the "G-lined (reason)" quit messages. -- Isomer
* Removed 'for nick[1.2.3.4]' from quit messages, they're redundant
and make hub hiding more reliable --Isomer
* ircd/s_user.c (hunt_server): add 'No such server' message back
--Isomer
* ircd/s_bsd.c: remove ALWAYSFLUSH - the problem wasn't ircu's fault
-- Isomer
* ircd/m_names.c (m_names): don't add a space if the user's a
zombie; fixes an overrun where we generate a huge number of spaces
in the names reply without length-checking them properly -- Kev
* added 'ALWAYSFLUSH', if you thought the furgeson flusher was bad...
--Isomer
* Fixed /USERHOST again. Horribly embarrased. Thanks again Liandrin
--Isomer
* Added extra field to /stats Y showing how many people are in that class.
Information was previously available via /trace, however tended to flood
you off if you weren't on a good connection. Requested by Mr_RIP
-- Isomer
* Fixed 'BADCHAN' resetting itself to 'Y', reported by Gator --Isomer
--------------------------- Released 2.10.10.pl10
* Released 2.10.10.pl10
* Backported /names optimisation from 2.10.11.
'/names 0' now returns verbose listing, '/names' simply returns
ENDOFNAMES. Disallow harmfull /names usage. --Gte
* Fixed ERR_NOSUCHNICK bug in userhost, thanks to Liandrin --Isomer
* Conceal more bugs in IPcheck --Isomer
* Add 'POST' as a unregistered command to disconnect people abusing web
proxies --Isomer.
* Conceal bugs in IPcheck --Isomer
* Fix for changing the wrong define --Isomer
* Fix for the easter buggy. --Isomer
* Fix for rpong --Run
* Fix for other IPcheck bug, thanks BLMet. --Bleep
* Fix for IPcheck bug, rewrite IPcheck from scratch (mostly),
add changes for new code to s_user.c, ircd.c --Bleep
* Shorten connection timeout for auth queries to 60 seconds
If connection is from localhost use the server alias for the
client host. --Bleep
* Fix for ident bug --Isomer
* Fix for rping/rpong --Gte
* Add m_pong to parser handler --Bleep
* Fix for EXTENDED_NUMERICS bug doh!!! --Bleep
* Fix for Max Undernet Server bug --Bleep
* Fix for PRIVMSG<->NOTICE translation from hubs --Bleep
* Fix for Bogus protocol strings for P9 servers --Bleep
* Hookup UPING code again, cleanups --Bleep
* Convert numerics back to mask and shift extended numerics
follow same mechanism --Bleep
* Fixed bogus errno return on Solaris --Bleep
* Fixed core on RPING bug, tokenized RPING --Bleep
* Remove add_local_domain entirely, unused --Bleep
* Merge u2_10_10_beta06 create branch u2_10_10_beta07 --Bleep
* Remove size_t from socket calls, audit usage of size_t
values. --Bleep
* Fix for OSF1, RES_NOALIASES not defined there. --Bleep
* Don't bother doing hostname lookup or setting me.sockhost
since we never want to display it there is really no reason
to have the info. --Bleep
* Bugfix broken N:line check in chkconf --Maniac
* Bugfix, fix clients occasionally getting stuck in IPcheck
code. Add note to members in client struct that aren't used
for any remote client code, didn't want to actually move them
this close to release (paranoia) --Bleep
* A few little cleanups in check_pings, removed yet another
address display. --Bleep
* Bugfix, autoconnects displaying server IP address to opers.
--Bleep
* Remove names from /stats p, since its always the server
name from the M:line anyhow, (redundant information)
--Bleep
* Unborked throttling. --Bleep
* Fix two stupid bugs, related to IP mismatch kills. --Bleep
* Clean up configuration, make it a bit easier for admins to
turn off asserts and heap checking code. Moved host name dns
query for listener virtual host ports to dead code and use
me.name for the listener name (no sense in looking up the name
if we don't want to display it). Change direct bump of unknowns
in s_bsd.c to Count_newunknowns(UserStats) for consistency.
--Bleep
* Added option to kill any connecting client with a forward and
reverse DNS mismatch. Fixed bug in s_auth that that caused
incorrect counts for unknown clients. Replaced missing server
notice for SNO_IPMISMATCH. --Bleep
* Added a few more little name tweaks, no sense in looking up
the hostname in the conf if no one knows it. --Bleep
* Moved to beta archive, bumped patchlevel, fixed message for
lost C:line in s_conf.c (I don't think I've ever seen this happen)
--Bleep
* Finished host hiding changes, it should not be possible for any
online user to discover the real hostname or IP address of any
connected or unconnected server listed in the configuration. This
applies to opers and regular users. The name in the M:line is the
name used for connecting and all informational messages. --Bleep
* Removed code in dbuf.c that flushes the dbufs if the server runs out
it looks like a fully loaded server may not be able to handle a net
break without shedding a few clients. --Bleep
* Finish IP address cleanup, alpha should be clean for not displaying
server hosts or IP addresses to users now. This needs to be verified.
Changed version to u2.10.10 per Isomers suggestion. --Bleep
* Remove server IP address from info line for connecting servers.
This almost completes the IP address hiding changes for alpha, there
are still a few stats commands available to users that will show the
server addresses, but they can be easily disabled or only show '*'s
to non-opers. --Bleep
* Fix possible (but not likely) memory leak in debug allocator, couldn't
find the "meg a minute" problem, using the debug allocator on the
production network with more than 1000 clients on a server may cause
problems if you don't have a lot of memory. (This does not seem to
be a problem with non-debug builds) --Bleep
* Captialisation fixes, just to keep certain ppl quiet. --Isomer
* Removed +s channels from /list. They were shown sometimes, but not
others, and the information that was shown about them was inconsistant.
list is not an effective way to gain information anyway. Reformatted
and touched up readme.who as well. --Isomer
* Added MAP to ISUPPORT, added doc/features.txt --Isomer
* Added suggestions made by scripters. more info for ISUPPORT, and
added stuff to 'TODO' --Isomer
* More TODO items 'done'. P:'s now ignore '*'s. ping shouldn't do funky
stuff with mirc anymore, needs discussion --Isomer
* Typo fixed. Now I'm annoyed. --Isomer
* Right, Makefile's gonna work now or I'm going to get REALLY annoyed at it.
--Isomer
* TODO, m_ping, ircd/Makefile.in: Added note to TODO, added info to
m_ping, and fixed Makefile bug using bsdmake. --Isomer
* s_bsd.c, listener.c, s_user.c, s_serv.c, s_bsd.h:
Set receive and send buffers in correct order to enable flow
control for clients and support fat pipes better for servers.
Finally got it right :)
See Stevens "Unix Network Programming" v1 p 191-193
--Bleep
* ircd.c (main): added idiot checking to make sure MAXCONNECTIONS
is sane. --Bleep
* send.c: Don't let negative fd's break stuff, audit sentalong
usage for sillyness. --Bleep
* send.c (sendto_common_channels): bug fix, code assumed client
local, file descriptor is only in local client struct
--Bleep
* table_gen.c, channel.c: make FIXME changes, removed
FIXME code from table_gen, readd FIXME code to channel.c,
I hope I got this right. --Bleep
* Makefile.in: Add purify def, fix so CFLAGS don't error
off when using Solaris compiler --Bleep
* fda.c (fda_free): fix compile error on Solaris --Bleep
* configure.in: add SunOS case to detect Solaris --Bleep
* os_solaris.c (os_send_nonb): fix solaris compile error --Bleep
* exaconf.2: add file from conf design to docs directory to
have it available for new conf parser development --Bleep
* fda.c (fda_free): fix memory leak, doh!!! --Bleep
* hash.c (addNickJupes): fix buffer overrun --Bleep
* s_bsd.c (read_message(poll)): fix uninitialized memory read
bogosity in poll macros. --Bleep
* channel.c (send_user_modes): change to send XXX:ov instead
of XXX:o:v doesn't send XXX: if no modes set. --Bleep
* s_bsd.c (connect_server): bugfix for connect/rehash/connect
multiple outstanding dns query core. --Bleep
* channel.c (send_user_modes): bugfix for burst not sending modes
when burst line is created. --Gte
* m_gline.c: change NumServ(cptr) to NumServ(sptr) found by Gte
--Bleep
* config-sh.in: add WildThangs BADCHAN config fix --Bleep
* config-sh.in: add Runs restart bugfix --Bleep
* Makefile.in: make sure version.c gets regenerated when checksums
change --Bleep
* Makefile.in: remove hash.c/crypt/sums idiocy, all of the ridiculous
anti-hack stuff is already done in version.c anyhow.
"Shhh..., don't tell the admins ( .)( .) you're being watched"
--Bleep
* hash.c (m_hash): fix count bugs --Bleep
* m_squit.c (mo_squit): fix off by one, /quote SQUIT bug --Bleep
* ircd_relay.c: oops, changed the wrong one. Fixed previous fix. --Isomer
* Makefile.in, ircd_relay.c: Fixed 'make depend', added dependancies, fixed
bug where server would core on sending a server notice --Isomer
* m_kick.c (ms_kick): fix core on kick message coming from
server --Bleep
* config.in: remove CRYPT_LINK_PASSWORD option --Bleep
* doc/readme.www: Applied Runs' doc patch --Bleep
* client.h: Add member to client struct to try to aggravate the
bug found by Jesus --Bleep
* client.h: Remove IsListening macros and flags, add FLAGS_UPUNG
and IsUPing/GetUPing/SetUPing macros --Bleep
* m_silence.c, m_create.c: check for IsServer(sptr) don't
allow X SILENCE X +*@*.com or X C #blah 947477407 core the
server. --Bleep
* os_*.c, res.c: clean interface for os_recvfrom_nonb --Bleep
* uping.c, uping.h: new files for UDP pings, these aren't hooked up yet, or
finished or tested.
--Bleep
* channel.c: find_member_link(): Fail fast for Servers, prevents core when
servers set a channel mode. --Isomer
* channel.c, channel.h, various.c: Changed find_member_link() to take
a chptr instead of the first member, and special case'd +k users
(see comment in code for more details) --Isomer
* ircd/Makefile.in: Changed gnu specific $^ for $< in table_gen
rules --Bleep
* INSTALL: Explained about CVS --Isomer
* example.conf: Point to coder-com@ for help configuring the server. --Isomer
* INSTALL: Make things a bit more plain. --Isomer
* s_bsd.c (read_message (poll)): removed local_cptr array using
this temp made possible a bug where if a client lower in the list
managed to exit a client higher in the list, a dangling reference
to the already exited client would be left in the local_cptr array.
Found by Quantum by loading 100's of clones with the same nick.
--Bleep
* INSTALL: Added instructions for -lcrypt FAQ --Isomer
* INSTALL: Added instructions for -lresolv FAQ --Isomer
* INSTALL: Added instructions for making ./configure executable --Isomer
* numeric.h: Merged in some more numerics that other ircds user --Isomer
* IPcheck.c: Fix gramatical error to keep pedants happy. --Isomer
* IPcheck.c: Allow -DNOTHROTTLE for debugging purposes. --Isomer
* m_stats.c: make stats c available to opers only, TEMP_HACK --Bleep
* IPcheck.c: Fixed outdated comment. Thanks Quantum --Isomer
* ircd_reply.c: Fix the fix, silly typo. thanks Bleep --Isomer
* ircd_reply.c: added check for people without nicks. --Isomer
* doc/Authors, ircd/version.c.SH: updated /info and maintainer
lists. --Isomer
* channel.h, channel.c, m_join.c, m_mode.c: add David M's
lchanmode patch update --Bleep
* s_auth.c: fix ident bug, comment code for rule. --Bleep
* m_invite.c (m_invite): Fix syntax error, missing ')'. -- Isomer.
* m_invite.c (m_invite): tokenize invites, change from accidental
broadcast to directed message (bug fix). --Bleep
* m_time.c (m_time): send tokenized time messages --Bleep
* s_user.c (set_user_mode): Send wallops to everyone by default
allow compile option WALLOPS_OPER_ONLY for networks that want
to disable wallops for users. --Bleep
* s_misc.c (exit_one_client): tokenize client quit message to other servers.
--Gte
* m_kick.c: you would have thought I'd fix all of them the first time, but
no... -- Isomer
* m_kick.c: Fixed missing space after TOK_KICK -- Isomer
* m_burst.c: Fixed netrider kick bugs -- Isomer
* s_user.c: Bug fix --Bleep
* s_user.c: only send wallops to opers --Bleep
* s_user.c: enforced undernet policy. -- Isomer
* s_user.c: replace user_modes with struct UserMode array
change code to use new struct. --Bleep
* s_user.c (set_user_mode): clean up switch statement --Bleep
* channel.c (set_mode): fixed -k foo bug, extra == 0 typo in
conditional. --Bleep
* dbuf.c (dbuf_alloc): fixed count bug, we _have_ to count it in
the branches. --Bleep
* dbuf.c, send.c, s_bsd.c, send.h: bahh finally did it right,
if a dbuf allocation fails, attempt to flush all send buffers except
for the one we are trying to build (we're twiddling with the list etc..)
if the allocation fails a second time, _then_ bail. --Bleep
* s_bsd.c, send.c: if dbuf_put fails for send or receive buffers,
call flush connections to free up some buffers (safe here). --Bleep
* dbuf.c (dbuf_put): back out previous change, afaict it would fail
spectacularly --Bleep
* dbuf.c (dbuf_put): call flush_connections(0) if we can't allocate
a dbuf the first time, this may prevent the server from dropping
connections during netbursts. --Bleep
* m_privmsg.c: fix IDLE_ON_MSG fix -- Isomer
* m_privmsg.c, parse.c: fix IDLE_ON_MSG bug --Bleep
* m_ison.c (m_ison): Temp hack to fix missing null terminator. --Bleep
* m_nick.c (m_nick): fix null nick reply bug --Bleep
* ircd_string.c, match.c: fix a couple possible issues with
the character attribute changes --Bleep
* s_auth.c, ircd.c: turn off connection status messages for
connections to server ports. --Bleep
* ircd.c, s_conf.c, m_server.c, ircd.h, s_conf.h:
removed portnum and server_port global variables, server port
in M:lines is ignored, server ports now need to be defined in
the P:lines. Add SERVER_PORT config option to allow:
'/connect server.net.dom' without specifying the port. --Bleep
* config-sh.in: change PORTNUM to SERVER_PORT now used for
default server port for outgoing connections in m_connect.
--Bleep
* example.conf: document changes to M:line for server port --Bleep
* ircd_chattr.h, ircd_string.h, ircd_string.c, table_gen.c:
put Nemesi's table generation code and macros back in, the
tables are now automagically generated whenever the table_gen.c
file is modified, use a slightly different mechanism to get the
tables in the executable. Add reference data file to test dir
for character attributes. --Bleep
* s_auth.c (check_ident_reply): add function that implements
auth reply undernet rules checking. --Bleep
* s_misc.c (date): added Runs Y2K patch --Bleep
* m_privmsg.c: work on server handlers, hookup new code to parser,
test, fixed a couple bugs, fixed username bug in server NICK
processing --Bleep
* ircd_chattr.c, m_privmsg.c: Work on privmsg code a bit more,
commit for review, still a bit more to do --Bleep
* os_bsd.c, configure.in: add os dependency file for bsd
--Bleep
* m_privmsg.c, ircd_string.c: little cleanups for privmsg
work on prototype handler for new parser. --Bleep
* m_connect.c, s_conf.c: clean up /connect handling code
--Bleep
* m_away.c, m_admin.c, m_close.c, m_connect.c:
start cleaning up handlers --Bleep
* whocmds.c, whowas.c, *.c: split out handlers from whocmds.c
and whowas.c --Bleep
* s_serv.c, m_*.c: split out handlers from s_serv.c
--Bleep
* querycmds.c, m_*.c: split out handlers from querycmds.c
--Bleep
* opercmds.c, m_stats.c, m_connect.c, parse.c, handlers.h, *.c
add new command handlers --Bleep
* channel.c, m_names.c: new file for names handler --Bleep
* channel.c, m_list.c: new file for list handler --Bleep
* channel.c, m_topic.c: new file for topic handler --Bleep
* channel.c, m_burst.c: new file for burst handler --Bleep
* channel.c, m_create.c: new file for create handler --Bleep
* channel.c, m_destroy.c: new file for destroy handler --Bleep
* channel.c, send.c, m_join.c: new file for join handler,
const fixups for send.c --Bleep
* channel.c, m_mode.c: new file for mode command handler,
clean up file scope buffer mess. --Bleep
* m_silence.c: split out SILENCE handler to a new file,
cleanup --Bleep
* m_ison.c: split out ISON handler to a new file, cleanup --Bleep
* m_userip.c: split out to new file, change userhost and userip
to use same algorithm with different formatting functions --Bleep
* m_userhost.c: split out to new file --Bleep
* send.c: add new function send_buffer, cleanup godemode ick a bit
--Bleep
* m_wallchops.c: split out wallchops handler --Bleep
* m_cprivmsg.c: split out m_cprivmsg and m_cnotice.
* m_pass.c, s_user.c: split out m_pass, pass message handler
--Bleep
* m_oper.c: split out m_oper.c from s_user.c, setup to use
new parser. --Bleep
* m_pong.c, m_ping.c, parse.c, s_user.c, channel.c:
Add new file for pong messages, convert ping and pong to use
numerics. Test pings and pongs on testnet. Fix numeric
nick bug in channel.c. --Bleep
* m_ping.c, s_serv.c, parse.c: new file for pings, fixed a
minor bug in ping handling. --Bleep
* m_nick.c, m_kill.c: clean up nick code for servers, still needs work
fix string formatting bug in m_kill --Bleep
* m_nick.c, s_user.c, ircd_chattr.c: add new file for NICK command,
clean up local client registration for nicks. --Bleep
* m_away.c, s_user.c, parse.c: split out m_away handlers for client,
add user_set_away function. --Bleep
* m_kill.c, ircd_reply: Rework handling of kill from server, add new error
message formatter. --Bleep
* m_kill.c (mo_kill): Rework handling for kill from operator on server
kill originated from --Bleep
* m_kill.c: new message handler file for kill --Bleep
* configure.in, ircd/Makefile.in: added automatic os checking to autoconf
checked --Gte
* m_quit.c: new message handler file for quit --Bleep
* m_privmsg.c: new message handler file for privmsg --Bleep
* ircd_string.c, support.c, support.h, *.c: moved strtoken to ircd_string
and renamed ircd_strtok --Bleep
* channel.c, s_user.c, s_debug.c, send.c, channel.h: finish membership code
--Bleep
* channel.c, more cleanups of membership code and macros --Bleep
* channel.c, s_misc.c: more cleanup in channel link code, most likely
still a bit broken yet, more to come. --Bleep
* querycmds.h (Count_remoteclientquits): fix minor bug --Bleep
* ircd.h, querycmds.h, struct.h, channel.c, list.c, map.c, opercmds.c,
s_err.c, s_serv.c, s_user.c, s_misc.c: Add Isomers passivelag0-1.patch
fixed minor bug in macros --Bleep
* channel.h, channel.c, s_user.c, s_debug.c, s_user.c:
added Membership struct for channel associations, change user/channel
lookups to use new struct. --Bleep
* channel.c, channel.h, s_user.c: cleanup channel and user code
a bit, new function find_no_nickchange_channel --Bleep
* parse.c, m_defaults.c: added default handlers and hooked up new
message handlers --Bleep
* *.c, struct.h: added Isomer's passivelag patch and, the second
p10 patch --Bleep
* ircd_reply.[ch]: new files for commonly used replies --Bleep
* m_proto.[ch]: new file for protocol command support, needed for zip
links --Bleep
* client.h, parse.c, msg.h: add code to support multiple message handlers
depending on client status. --Bleep
* s_bsd.c, packet.c: code cleanup prep for zip links --Bleep
* channel.c, opercmds.c, ircd.c, s_serv.c, s_user.c, querycmds.c,
whocmds.c, whowas.c: Add Isomers p10ify patch, tokenize server to
server commands --Bleep
* s_user.c (m_nick): killed goto --Bleep
* client.h, *.c: moved client stuff to client.h --Bleep
* version.c.SH, patchlevel.h, .patches: change version string
generation, patch level is now set in patchlevel.h by simply
bumping the number in the PATCHLEVEL string. --Bleep
* ircd_alloc.c, channel.c: fixup warnings in release build (NDEBUG)
--Bleep
* fda.h, ircd_alloc.h, fda.c, ircd_alloc.c, fda_t.c: new files,
runmalloc was core dumping on squits and unable to handle or
detect double frees, the memory debug code can be disabled by
compiling with NDEBUG defined --Bleep
* channel.c (remove_user_from_channel): refactor function --Bleep
* channel.c (m_kick): refactor function a bit, put all checks at top
move code out to new function (make_zombie) --Bleep
* s_bsd.c (completed_connection): fixed stupid
"Write error to blah: Socket not connected" bug --Bleep
* struct.h, send.h, send.c, s_bsd.c, IPcheck.c, s_user.c, *:
More socket code cleanup, move file descriptor to local part of
client struct, use cptr->error to handle the errno of any socket
error, fix bug in IPcheck that ends up only disallowing every
256th clone, Add more ipcheck forgiveness to s_user.c (needs work).
Changed IPcheck_local_connect and IPcheck_connect_fail interfaces to
use struct in_addrs instead of client structs to allow delaying the
allocation of the client struct till after the check was done.
Added can_send function to send.c (should be called before work is done
but right now it's called just before trying to send (needs work))
* channel.c: Added Isomers netride2.patch, still needs a config option
to turn it on (NO_INVITE_NETRIDE) --Bleep
* parse.c, msg.h: Added silent ignores for notices so connect progress
messages do not cause connecting server to spew ERR_REGISTER_FIRST
messages at the server it's connecting to. --Bleep
* s_serv.c, s_user.c, channel.c, send.c: Tokenised BURST, NICK,
END_OF_BURST, EOB_ACK, PRIVMSG and NOTICE Server to Server.
About 8-10% Bandwidth saving on BURSTS. --Gte
* channel.c (m_join): servjoin patch --Isomer
* ircd_osdep.h, os_*.c, s_bsd.c, send.c: more cleanups in socket code,
use enumeration for IO results. --Bleep
* s_bsd.c: clean up select and poll code a bit more, fixed message pacing bug
in poll. --Bleep
* supported.h, numeric.h, s_user.c, s_err.c: Added Isomers features
patch. Use numeric 005 RPL_ISSUPPORT to convey server features to
clients. --Bleep
* s_user.c (m_nick): IP differ patch, use IP address instead of host
name to determine different user@host for nick collides. --Isomer
* hash.c (hChangeClient): Bug fix. Fixed bug that caused stale entries
to be left in client hash table after a name change. Discovered by
Quant and Isomer. --Bleep
* hash.c (hSeekClient): fixed bug I introduced when reversing my hash
table code changes, thanks Quant and Isomer --Bleep
* opercmds.c (m_lusers): send limited luser info to remote
clients --Isomer
* numeric.h, channel.c, s_err.c: Changed invite list numerics
from 283/284 to 346/347 to match IRCnet numerics --Bleep
* config-sh.in, gline.h, numeric.h, gline.c, opercmds.c, s_debug.c, s_err.c:
Add badchan patch by WildThang --Bleep
* config-sh.in, channel.h, numeric.h, channel.c, s_debug.c, s_err.c:
Add lchanmode patch by David M --Bleep
* channel.c (cancel_mode): removed incorrect assert --Bleep
* *.c: removed P9 support, not everything is completely gone but most
of it is, the server builds and connects to other servers, but thats
as far as it's been tested so far. --Bleep
* ircd.h, ircd.c, s_bsd.c:
removed BOOT_INETD/BOOT_CONSOLE code, unused non-functional --Bleep
* struct.h, ircd.h, ircd.c, s_user.c, s_bsd.c:
removed BOOT_OPER/STAT_MASTER code, original patch by Isomer --Bleep
* s_user.c (m_nick): removed redundant check for acptr
* hash.c (hSeekClient, hSeekChannel): roll back some of hash.c changes
* hash.c (hSeekClient, hSeekChannel): removed unused variable from previous
changes.
* hash.c (hSeekClient, hSeekChannel): fix compile error from status changes,
fix logic bug that caused the first client that matched the mask to be
returned regardless of whether or not it's name matched, this can result
in wierd problems where the wrong server/client could be returned from the
hash table lookup. Removed code that moved client to head of hash table
chain for it's bucket when it's looked up, if the hash table is working
reasonably well this just wastes cpu.
* hash.c, list.c: added code to zero out cptr->hnext when client removed
from hash table, added assert for hnext == 0 in list.c to make sure that
client was actually removed from the hash table before freeing it's memory.
* various: misc cleanups
* support.c: removed dead code
* configure.in: remove unneeded checks for minix, aix, ansi/posix headers
these things are handled by porting layer code.
* res.c: remove calls to add_local_domain, these were causing incorrect
behavior
* opercmds.c: cleanups in gline code
* s_bsd.c: increase socket buffers to 65535 for server connections
* crypt/mkpasswd.c: mutter correct runes to get file to compile without warnings
* gline.c, gline.h: add new files to attempt to encapsulate glines a bit,
some code from opercmds.c needs to be moved here still
* opercmds.c (m_gline): fix local gline bug
* s_conf.c (initconf): add password change on rehash fix
* s_conf.c (rehash): fix rehash freeing and reloading the motd/rmotd files for
every client connected.
* ircd_log.c: use 2K fixed buffer instead of vsnprintf, nothing we write to
the log should ever exceed 512 bytes, but it doesn't hurt to be paranoid.
* res.c: change resolver timeouts to 5 seconds, per RFC1123
* channel.c: more little cleanups, no code changes
* channel.c: a) stops iterating over /invite list
b) adds /invite to list the channels you're currently invited to.
c) adds lotsa new numerics --Isomer
* ircd_signal.c, ircd.c: fix bug in signals
* channel.c (can_send) add Isomer's changes
* channel.c: add send_ban_list, cleanup a few names, reformat some parts to make
more readable, fix bug introduced by name changes
* ircd_chattr.[ch]: add new macro for checking K:line time chars vs comments
* listener.c (show_ports): add code to show client/server and hidden status
* s_conf.c: bug fixes, cleanups, add code to set server port and hidden
status for listeners (P:lines)
* s_conf.c (initconf): add interface selection code to P:lines so ports can
be set on a single interface or multiple interfaces (multi-homed hosts)
* s_conf.c: rewrote C/N line code, removed N:lines entirely, clean up server
conf line code.
* s_conf.c (check_server): move ip checks out of resolved or not so they can
be checked for worse case situations on server connects
* res.c (resolver_read): add Isomer's debug info for failed resolver queries
* opercmds.c (m_stats): remove call to time(0) for each local client in
stats l command, use CurrentTime instead
* s_conf.c (initconf): only do lookups on C:lines instead of both C/N lines
* res.c: fix resolver hang bugs
* s_conf.c (rehash): remove extra semicolin that was causing c/n lines to
accumulate
* s_conf.c (rehash): add portnum back to the listener list so we don't loose
the server port on a rehash
* s_auth.c, listener.c: remove warnings for normal errors
* s_auth.c, listener.c: use osdep non-blocking calls instead of locals
* s_auth.c, listener.c: add code for non-blocking recovery for listeners and
auth queries
* s_auth.c (auth_error): call IPcheck_connect_fail if the client socket dies
during the auth check so the reference count doesn't get borked in the
IPcheck code.
* numnicks.c: yet another extended numerics bug fix... sheesh
* s_bsd.c, s_conf.c: move conf line code from s_bsd.c to s_conf.c, cleanup
cleanup check_server, check_client (still not completely tested, may be
a bit buggy yet).
* parse.h, parse.c, s_debug.c: remove privmsg logging code
* numnicks.c (FindXNServer): fix off by one bug
* common.h, common.c: removed unused files
* s_bsd.c (net_connect_completed): new function, called after connection
establishment for servers and clients, release reference count for
the dns reply and set the socket buffer size to IRCD_READBUF_SIZE
for servers and 2K for clients.
* channel.c, crule.c: cleanup bogus casts
* listener.h (add_listener): fix bug that caused server a server port listener
to think it was a client port listener.
* s_user.c, s_serv.c: release reference to dns_reply when connection is
established.
* s_bsd.c (completed_connection): removed call to start_auth for connects
the auth module expects connections not to be linked anywhere and owns
the client struct until it's done.
* listener.c (release_listener): fix inverted assert client exit bug
* ircd_chattr.c: fix signed/unsigned warnings with Sun Workshop (+w)
* ircd_chattr.c, ircd_chattr.h: new files for character attributes and case
translation, hopefully they will be a bit easier to maintain.
* s_conf.c (rehash): fixed logic bug that caused and infinite loop,
fix port update bug (needed to call mark_listeners_closing before initconf)
* *.c, runmalloc.[ch]: change the way the server deals with out of memory
conditions. On server startup a no-memory handler is installed which
calls server_restart if an allocation fails. Allocations are now checked
in the memory allocation functions. Added asserts after every allocation
to verify for debug.
* *.c *.h: move authentication and dns to authentication module rename a few
globals, const correctness fixes, add ircd_string code, rework network
code, use dns callbacks, removed a lot of redundant code
* s_bsd.c: finish this stage of net code work
* *.c, *.h: rewrite select and poll code, add listener.[ch] net.code overhaul
in progress, prepare for adding auth module
* s_bsd.h, struct.h: moved client struct macros back into struct.h for now,
the last place they belonged was in the network code... feh
* ircd.c (open_debugfile): removed client for debug file
* ircd_string.h, ircd_string.c: new files for string processing, add
ircd_strncpy function
* *.c, *.h: rename ircstp to ServerStats
* *.c, *.h: rename now to CurrentTime
* listener.h, listener.c: new files for listener ports
* include/ircd_defs.h: new file for global definitions (HOSTLEN, USERLEN)
* struct.h: add local_flag to client struct, to make local/remote detection simpler
* s_bsd.c (read_message): split out separate versions for select and poll
* s_bsd.h, various source files: remove the rest of the unix domain socket
support this removes a number of comparisons that were unneeded in
code that should run reasonably fast.
* os_*.c, res.c, ircd_osdep.h: add os_recvfrom_nonb for resolver
* os_*.c, s_bsd.c, s_auth.c, ircd_osdep.h: add os_get_sockname, os_get_peername
* bsd.h, bsd.c: merge into s_bsd
* ircd_osdep.h, os_generic.c, os_linux.c, ircd_osdep.h: move os variable stuff
to separate compilation units, os generic contains the original code
(start here).
* s_bsd.c, send.c, struct.h: remove pyr (pyramid) finally
* res.h, res.c, s_misc.c: cleanup headers/dependencies in res.h
* match.h: include sys/types.h before netinet/in.h, broken BSD system headers
* ircd/Makefile.in: remove CFLAGS from link line, use LDFLAGS instead
* ircd.c: add missing include for sys/socket.h
* common.h (strChattr, strCasediff): remove pointless non-portable inline
decls. The functions are complex enough that inlining just bloats the code
* ircd_xopen.h, ircd_xopen.c, s_user.c, s_serv.c: porting layer for crypt and
other xopen library calls, moved crypt to ircd_xopen.
* s_uping.c, s_uping.h, s_bsd.c, s_misc.c, s_bsd.h, ircd.c, s_debug.c:
Removed s_ping. There are much better tools available that actually work
correctly. The s_ping code was a waste of resources, and has historically
given incorrect results (it never worked correctly).
* ircd/s_bsd.c, res.c, s_user.c, s_serv.c: little fixups to allow code to
build on Solaris, still have some warnings there.
TODO: wrap crypt and things that depend on _XOPEN_SOURCE in their own
file so it doesn't bother the network code.
* ircd/s_bsd.c: cast option arg to const char* for setsockopt (solaris)
* ircd/Makefile.in: removed hard coded dependencies for hash.o chkconfig.o,
let the automatic stuff take care of it, it does it better than humans.
* *.c *.h: remove register keywords, attribute macro junk, cleanup
dependencies, rename MIN and MAX to IRCD_MIN IRCD_MAX all headers in
C files are sorted, removed as many duplicate includes as I could find
(dozens) general cleanups. Mutter the correct runes to get the protoype
for crypt included where it was needed.
* *.c *.h: dependency cleanups up to querycmds.c
* ircd.c, bsd.c, s_bsd.c: move signal handling code to ircd_signal.c
* ircd_signal.c, ircd_signal.h: new files, use only POSIX signals remove
support for unreliable signals.
* *.h *.c: include guards, dependency cleanups
* Configure.in, setup-sh.in: include guards, config.h includes setup.h
add config dir to include path
* sys.h: include guards, remove hard coded path to config.h
* s_user.c (hunt_server): fix logic bug
* numnicks.c (SetServerYXX): fix off by one error
* multiple files (n2k patch): add code to handle extended numerics
+316
View File
@@ -0,0 +1,316 @@
/************************************************************************
* IRC - Internet Relay Chat, doc/MANUAL
* Copyright (C) 1990, Karl Kleinpaste
*
* 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
Date: 04 Apr 1989
Author: Karl Kleinpaste
karl@cis.ohio-state.edu
Last modification: 15 May 1992
by Mauri Haikola
mjh@stekt.oulu.fi
Modified for undernet: 7 Feb 1995
by Carlo Wood
carlo@runaway.xs4all.nl
INTERNET RELAY CHAT (IRC)
a real-time conversational system
* 1: IRC - replacement for talk(1)
IRC is a functional replacement for and improvement to talk(1). Talk
is an old, primitive, atrocious, minimalist sort of keyboard/screen
conversation tool, using a grotesque, machine-dependent protocol.
IRC does everything talk does, but with a better protocol, allowing
more than 2 users to talk at once, with access across the aggregate
Internet, and providing a whole raft of other useful features.
Note (added Apr 7, 1998): The above statement has been left there for
historical reasons. It should be noted however that IRC is not any
longer a replacement for talk(1). At the time IRC was first developed,
people connected to internet all were using accounts on UNIX Operating
Systems, which almost all did run a non-restricted fingerd and a talkd.
This allowed to see if someone was logged in (with finger) and then
summon him to talk by connecting to his talk daemon. For IRC however it
is necessary to already be connected to an IRC server and one needs
to pay attention to the window of the IRC client in order to see if someone
wants to talk to you. Therefore IRC has become more of a 'chat box':
a Real Time Chat environment for chatting, making friends and exchanging
information. It has little resemblance anyore with talk(1).
* 2: Entering Internet Relay Chat
To enter Internet Relay Chat you need to run a client, which will start
connecting to its default server. More info on clients can be achieved
from ftp://ftp.undernet.org/pub/irc/docs/faq/underfaq.1. A lot of clients
for all kinds of Operating Systems and (programming) languages can be
found in ftp://ftp.undernet.org/pub/irc/clients/index.html.
* 3: How much can be seen from here
The universe - seriously.
This is most formally called Internet Relay Chat. Server hosts are
connected via a tree structure. The various servers relay control and
message data among themselves to advertise the existence of other
servers, users, and the channels and other resources being occupied by
those users.
* 4: Structure
There is quite a lot of structure to the operation of IRC, as compared
to crufty old talk(1). Since so little could be done with talk(1), it
needed little structure. But to keep track of people spread literally
around the world, the structure is useful so that one can speak to exactly
those people with whom one wishes to speak. The structure is outlined in
more detail in the paragraphs below.
** 4.1: Nicknames
All users of IRC are known to the system by a `nickname.' A nickname
can be chosen at the moment the client connects, but can be changed at
any time. Nickname clashes are not allowed; this is enforced by the servers.
If one's intended nickname clashes with someone else as one enters chat, one
will not be able to complete entry to IRC until one changes one's nickname
to something else.
** 4.2: Presence on a channel
Fundamental to the operation of IRC is the concept of a channel. All
users are `on a channel' while inside IRC. One enters the `null
channel' first. One cannot send any messages while not in any
chatting channel unless one has set up a private conversation in some
way. The number of channels is virtually unlimited - whatever will
fit in a string of 200 characters and starts with a #, & or + sign.
A channel which is prefixed with a '#' (pound sign) is a global channel;
available to everyone on the network. A channel prefixed with a
'&' (ampersand) is a local channel; only available to users on the server
you are connected to. While a channel prefixed with a + (addition sign)
are global and modeless; those channels do accept mode changes.
** 4.3: Main modes of #channels
Public
This is the default mode for a channel. When one is on a public
channel, one can be seen by all other users (if one's own user mode
permits this). Anyone can notice users on a public channel and join
such a channel's conversation.
Private
This means that, although anyone can see that one is using chat, no
one can tell what channel one is using unless one is already on that
channel with oneself. Since the number of potential channels is in
the billions, this is quite some security - all one gives away is the
acknowledgement that one is using chat.
Secret
While one is on a secret channel, no one who is not on one's channel
with oneself can even see that one is there. One's name does not show
up in a wildcard search of active users. Of course, making a channel
like '#test' secret gives a huge change to be discovered anyway.
Changing the mode
The mode of a channel (private, secret, invite-only, moderated,
topic-limited, person-number-limited, no-messages-to-channel, ban
someone from channel, etc.) is set by a channel operator, who is the
first person to join a channel, or someone who has had channel
operatorship bestowed on them by another channel operator.
Local channels
Channels which are prefixed with the ampersand (&) sign are local
channels which mean they can only be accessed to users who are on
the same server. For example, &help may exist on every server on
the network, however each of them are different channels whereas
global (#) channels are just one channel for the entire network.
Modeless channels
Channels that have a name that start with a plus sign (+) instead,
are modeless. This means that nobody is channel operator and hence
no mode changes can be done. The default mode of a +channel is "+nt".
The intention of modeless channels is to avoid channel wars by making
all users on that channel a-priori equal. The only possible abuse,
channel flooding, should be solved with /ignore.
*** 4.4: Conversations not using channels
It is possible to conduct conversations with others without using the
formalized channel structure. Doing so requires that two people set
themselves up for private conversation using special commands; see
User Commands below.
** 5: Getting help
Type "/help." Follow the instructions. Since this is a client feature
it might not work for you, in which case you'd have to consult your
local IRC guru or someone on the net.
** 5.1: User commands
In most clients, commands must start with a '/' (for example: /join #test).
The most important commands supported by IRC are:
help quit who whois
list topic join part
links msg invite silence
names stats nick away
info clear query ignore
mode
Also read the file ADD-TO-IRCRC for a description of Undernet specific
commands and an example script for the ircII client.
*** 5.1.1: /quit [comment]
/quit exits chat. Optional comment may be included; see above.
*** 5.1.2: /who [channelname_mask | user@host.mask]
/who returns information on who is using chat. Users of public channels
show up with one of their channels identified, if any. Users of private
channels appear, but they are specified as being on a private, unspecified
channel. Users of secret channels and users whose user mode is +i (invisible)
do not appear at all.
Giving a channel name as an argument to /who returns only those users of the
specified channel. This still doesn't show users of secret channel or
invisible users one is actually on the same channel with them. Users
of private channels are shown, if an exact channel name is given.
For a detailed explanation of the many options of /who, see doc/readme.who !
*** 5.1.3: /whois <nickname>
This returns information about individual users. Type "/whois nickname"
to get information on the login name and host from which the nicknamed
user comes. You can specify multiple nicknames to query by seperating
each with a comma.
*** 5.1.4: /topic <some topic string>
Channels can be given off-the-cuff "topics." Saying "/topic some
string of text" will associate that topic with the current channel.
*** 5.1.5: /list [options] [channel.mask]
/list will give lists of active channels, the number of users of each,
and the topics therewith associated. Again, secret channels do not
appear and private channels only appear as Prv.
[options] is a comma seperated list of one or more of the following options:
>nnn
<nnn
C<ccc
C>ccc
T<ttt
and T>ttt
This comma seperated list may not contain spaces.
Here `nnn' is the minimum or maximum number of users on a channel,
`ccc' is the minimum or maximum age or creation time of a channel, in
respectively seconds or UTC. And `ttt' is the minimum or maximum age
or creation time of the topic of the channel, in respectively seconds
or UTC.
On most servers, if no options are given, the server will use a
default option (like "T<10") in order to strongly reduce the of number
of listed channels.
*** 5.1.6: /join <channel> [key]
/join <channel_name> is the means to enter a channel. Give the channel
name as an argument. If this is a secret or hidden channel, /who
commands will show oneself and any other users of one's channel.
One's arrival on a channel is announced to the rest of the users
already on that channel. Silent, anonymous "lurking" is not
supported.
If the channel is locked with a key, you need to add the [key]
parameter which acts as a password (cannot contain spaces).
*** 5.1.7: /msg <nick> <some text string>
A single message can be sent privately to a certain user with /msg.
Type /msg nickname and the text to be sent. It will be sent privately
to the indicated nickname.
*** 5.1.8: /invite <nick> <#channel>
If there is a user online to whom one wishes to speak, one may invite
that user to join oneself on a certain channel. One types "/invite
nickname" with an optional channel name. The receiving user gets a
one-line message indicating the sender and the invitation. The
receiving user is free to ignore the invitation, of course. You
cannot invite users to a modeless channel.
*** 5.1.9: /ignore <nick!user@host.mask>
If one wants to ignore messages sent by some other user or users, it
may be done with /ignore command. One can ignore someone by their
nickname, or by their user@host data. Wildcards may be used. /ignore
is only intended to ignore annoying public messages (messages sent to
a channel), to stop flooding (a huge number of messages per second)
you have to use banning for channel messages, and /silence for private
messages. /mode <your nick> +d stops all messages from ALL channels.
*** 5.1.12: /silence [nick!user@host.mask]
This command effectively stops private message flooding at the server
of the flooder. You can use "/silence nick" to get a list of the
silence masks of 'nick'. This command is undernet specific and therefor
not supported by all clients unless you add specifically a line to your
clients configuration file.
*** 5.1.11: /nick <new_nick>
One can change nicknames by issuing "/nick new-nickname." All users
on one's channel will be informed about the change. NOTE: If one enters
chat with a nickname clash (e.g., one's login name is the same as
someone else's, and the other user got there first), the system will
not let one enter until one issues a /nick command with a unique
nickname. Nicknames are limited to nine characters in length on the
Undernet.
*** 5.1.12: /mode #channel [lots of parameters]
This command can be used for altering the various modes of a channel
(see the explanation of channel modes above). /mode command can only
be issued by channel operators. Please use /help, or the manual of
your client to find out about this command.
If you would like a list of the current modes in the channel, type
/mode <channel> (you do not need to be a channel operator to do this).
For a list of channel bans, type /mode <channel> +b.
* 6: Questions, problems, troubles?
If you have problems, please get and read the FAQs from
ftp.undernet.org:/pub/irc/docs/underfaq.1 and underfaq.2.
You can also ask for help on some of the operator channels on IRC,
for example #help. They will be able to assist you in whatever
problems you are having with IRC.
+71
View File
@@ -0,0 +1,71 @@
/************************************************************************
* IRC - Internet Relay Chat, README
* Copyright (C) 1990
*
* For the list of authors and their e-mail addresses, see
* file doc/AUTHORS
*
* 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
To install the new server, there is just a few changes to be made.
* General Comments
Tue Nov 13 12:43:46 1990 Armin Gruner <gruner@informatik.tu-muenchen.de>
(APOLLO: Be sure to have NEED_INET_NETOF, NEED_INET_ADDR and
NEED_INET_NTOA undefined.)
Mon Nov 26 20:10:37 1990 Armin Gruner <gruner@informatik.tu-muenchen.de>
Comment: I just found that compiling on our SUN SPARC with GCC produces
code that dumps core.. (that might not happen on your machine, try it,
we may have out-of-date libraries). See netnews gnu.gcc.bug for a dis-
cussion about the matter. It seems that gcc passes struct's in a
different manner.
* Server configuration
Edit the include/config.h to your hearts content, avoiding going
beyond the warning line, unless you are *absolute* sure you know
what you are doing.
If you happen to not take to this warning, you may end up with
a server that will not function properly and annoy not only you,
but users all around the world.
Old irc client can be found in this package and if you want to use it,
check Makefile in directory irc before compiling. There are other,
better irc clients in distribution and the client distributed with
this version is simply something to begin with if you don't happen
to have other clients available.
This version was brought to you by jto@tolsun.oulu.fi and send any
bug fixes and suggestions to me.
NOTE: This server does *NOT* have MAIL system installed by default.
The reason is that it doesn't work with many systems.
This version introduces you string channels, starting with
a plus (+) sign. The first person joining a string channel
claims it's ownership and after that is entitiled to use /mode
command. Ownerships can be given and taken away with
/mode <channel> +o <nickname> and /mode <channel> -o <nickname>
Other flags are: s - secret, p - private, l - limited, i - inviteonly.
m - moderated, n - no private messages to channel,
t - topic settable by operator only
New command /KICK <channel> <user> kicks a user off channel.
--Jarkko (jto@oulu.fi)
File diff suppressed because it is too large. Load diff
+51
View File
@@ -0,0 +1,51 @@
/************************************************************************
* IRC - Internet Relay Chat, doc/HISTORY
* Copyright (C) 1990
*
* 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
HISTORY of Recent IRC Versions.
Previous version numbering schemes have caused some confusion, which this
document attempts to resolve.
The original test versions released by WiZ were numbered 2.01?6 where
the ? refers to a letter. The last known stable version was U6.
Version 2.1.0/1 was rewritten by Mike Bolotski from the U6 sources but
several bugs were introduced during the rewrite. After several weeks,
almost all servers backed up to U6. Version v6 contained comparatively
minor modifications from U6.
Version 2.2 consists of the v6 source repackaged into multiple directories,
and with modified documentation. From now on, the version number will
stay relatively constant. As minor changes and bug fixes are added, they
will be distributed in the form of context diffs, to be applied with the
'patch' command. Each bugfix will bump the patchlevel (PL) of the release
by 1. The PL is documented in the version.c file in the lib/misc directory.
Version 2.3 was unfortunate mistake containing copyright violations
so it was soon taken off distribution.
Version 2.4 contains *very* many bug fixes, enhancements, and "hooks" for
use in future releases. The source tree has been restructured, and the
Makefiles rewritten to be recursive and follow the new source tree layout.
Version 2.5 contains string channels and channel modes (as well as
channel operators). Also Wizible's MAIL system was included as an option.
Hopefully, whoever provides a fix will also update the respective
ChangeLogs to summarize the changes, as well as adding a description of
the bug to the BugList file.
+206
View File
@@ -0,0 +1,206 @@
Hi fellow undernetters,
I forgot if it was requested on routing-com or here, but you won't see me
cross posting, so I did choose 'wastelanders'.
The request was to mail an overview of the changes 2.8 ==> u2.9,
especially for the new Opers, but also as a reminder for others.
The patch file from irc2.8.21.mu3.1 to ircu2.9.17.mu is 446652 bytes.
So you will understand I can't cover every little change.
New commands
------------
/UPING <server.to> [<port>] [<server.from>] [<number of packets>]
Sends <number of packets> (default 5, max 20) size 1024 bytes, from (remote)
server <server.from> (default local server) to <server.to>. The default
port is 7007 and the same on all servers. If a server is down, you can
still use port 7 (echo). Also 2.8 echo's, on port PORTNUM (config.h).
UPING uses udp, you need CN lines (masks as server names are allowed) but
the connection doesn't have to exist already.
/RPING <server.to> [<server.from>] [<Optional remark>]
Sends one 'RPING' message using the irc protocol over an existing link.
It allows to measure the lag of remote links, respons is in ms accuracy.
The <Optional remark> can be used to measure to total pingtime to your
client (like the CTCP PING) or to add a serial number for automation.
/MAP [server.mask]
Shows a map in the layout as Router.
/SETTIME
Only for debugging, isn't needed. (Oper only).
Changed commands
----------------
/CONNECT
No doubt the biggest impact of 2.9 is on connecting:
When the link is physically possible, your /connect ALWAYS succeeds
except when an H: or L: line somewhere on the net forbids it, or when
*after* your connect another connect is done that cause a loop. The only
restriction is that you are not allowed to make deliberately a loop:
you must first squit. Loops only happen when to connects are done
simultaneously and the SERVER messages had not yet time to propagate
over the whole net.
When a connect (manual or automatically) is done for a link that used
to get "server exists", with 2.9 the Ghost is squitted off the net,
making it possible to recover faster from breaks caused by bad links.
If on the other hand a loop occurs because two parts connect at two
points, the servers that detect the server nick collision will squit
the most logical link to break the loop, and only one link. This results
thus in a connected net one way or the other (for this all 2.8 servers need
to be off the net! Till that time the net will connect and then break
at two places, giving more messages then right now with only 2.8).
2.9 servers also notify the Opers (or users with +s) about net.junctions
and net.breaks. It does this even better then Router: A lot faster, always
correct (REAL junctions), and independent of Router: You will also see
them when Router is 'on the other side'.
/TIME
Has changed. Now also shows the system clock / TimeStamp clock offset.
/MODE +b
You only have to be joined, not be chan op anymore.
/MODE <nick> +d
Makes the user 'Deaf'. Needed for the channel registration service.
Channel messages are not routed to a Deaf person decreasing bandwidth use.
/LINKS
Output also shows used protocol for that link.
New numerics
------------
RPL_MAP, RPL_MAPMORE, RPL_MAPEND and RPL_TRACEPING.
Bug fixes
---------
- A handshaking link doesn't pingtime out; That can interfere with
slow nameserver lookups.
- U: lines (and K: lines) now active directly after a /rehash
- Don't bind() a socket before connect(), thats useless on machines
with just one ip number (like we all have), and can confuse
some OS's I found out.
Significant Patches
-------------------
The following patches have been the objective. To realize them I needed to
rewrite and change huge other parts of the code also, because lot of the code
in 2.8 is under great tension of re-re-re-patches.
- Rewrote m_server. Objective:
= Allow ghosted servers to reconnect (solution "server exists").
To allow for this:
- Added a timestamp to SQUIT, this timestamp functions as a label
which matches the corresponding SERVER (connect).
- Added a prefix for every message, absolutely necessary to keep track
of the correct order (direction actually).
- The oci has been added (oper sees invisibles on own server).
- A new NOTE is added, many bugs removed and extremely speeded up due to
a better interface with the rest of the code.
- The TimeStamp clocks are now automatically synchronized, so a wrong
system clock isn't a problem anymore.
- Added a Protocol-version and detection. This allows protocol changes
with a *MUCH* higher backwards compatibility.
- Server now keeps track of the server map. This allowed for /MAP and
a lot of speed ups (don't have to scan through all clients to find a
server) but much more important: The disconnect burst could be brought
back to ONE message (instead of a QUIT for ever single client).
Apart from decreasing bandwidth use, this was necessary for other
important protocol changes, and even more to allow important future
changes that will reduce the connect.burst as well. The most important
current impact is that it allows SQUIT to travel down stream AND up stream.
Because directionless messages can loose the order, the timestamp on
SQUIT was needed to check the validity.
- In the client structure a pointer to the server structure is used
rather then the full servername, using less memory AND speeding up
several places because you don't need to lookup the servername
anymore.
- USER removed from the connect burst (now all in NICK).
Other patches
-------------
- exit_client() is rewritten.
Added are exit_client_msg() and exit_new_server().
This has especially impact on the possibilities within the protocol.
The old exit_client() was clumsy and therefor already used in an incorrect
way at several places. The kludges around this part of the code made it
impossible to make any changes without breaking something else. Only after
the rewrite it was possible to make changes described else where.
This also allowed to improve the error message handling to the point that
Opers see *always* the error messages involved with routing (also those
from remote /connects, delayed errors and squit reasons 'from the other
side').
- send.c is more or less rewritten. varargs are fixed now and send.c is
highly optimized for speed (possible because of new internal server map).
- All useable dog3 code speed ups have been added.
These include:
- Added a head pointer in the dyn buffer.
- several code optimisations
- continious kill line checking removed (I added the check at
the place where it belongs: after a /rehash).
- Useable patches from dl:
- Stop as much as possible flooding from unregistered connections.
- VERSION and ADMIN available for unregistered users.
- syslog (if defined) KILLs of local clients.
- Many compile warnings have been removed. Also a special fix for DYNIX to
make UPING/RPING also work there (needed gettimeofday()).
Package changes
---------------
- The irc client is removed from the package as are several old files with
incorrect old useless info (Like 'WHATSNEW', ChangeLog that stopped at 1992).
- A Makefile.dist is added.
- Slighty changed doc/Manual
- New doc/NOTE manual
- NO_DEFAULT_INVISIBLE removed; users are always visible by default.
- Last but not least: patchlevel.h is rewritten so any additional patch
can do the version update itself, without interfering: No need to edit
this by hand anymore.
Summary
=======
- Less memory usage
- Speeded up code
- Less bandwidth use, especially disconnect burst
- "Server exists" solved
- Error messages concerning (remote) /connects now always visible.
- New tools to do (remote) link testing
- Intelligent and improved SQUIT handling, should stop unwanted breaks.
- squits comments visible everywhere.
- net.junction and net.break notices
- Overall protocol streamlining allowing for future improvements
of the protocol.
Run