ircu2.10.12-pk.git
24 years agoAuthor: Bleep <tomh@inxpress.net>
Bleep [Sat, 18 Mar 2000 05:20:30 +0000 (05:20 +0000)]
Author: Bleep <tomh@inxpress.net>
Log message:
Update ircu2.10 to ircu2.10.10 level merge beta into main trunk

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@27 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: Bleep <tomh@inxpress.net>
Bleep [Sat, 18 Mar 2000 02:07:55 +0000 (02:07 +0000)]
Author: Bleep <tomh@inxpress.net>
Log message:
Eventually I'll get this bit in there the first time.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@24 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: Bleep <tomh@inxpress.net>
Bleep [Sat, 18 Mar 2000 01:59:57 +0000 (01:59 +0000)]
Author: Bleep <tomh@inxpress.net>
Log message:
Rollback pline8 patch, remove server hosts and addresses from strings
sent over the wire. NOTE: this might leak in a couple places let us
know if you find any hostname/address leaks. See the example.conf for
information on setting up virtual hosting (minor change).

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@23 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: Gte <gte@atomicrevs.demon.co.uk>
Bleep [Tue, 14 Mar 2000 01:35:20 +0000 (01:35 +0000)]
Author: Gte <gte@atomicrevs.demon.co.uk>
Log message:
Bugfix: uninitialized variable causing getsockname to fail and trigger
other bugs.

In s_auth.c:103, insert:
  len = sizeof(sock);

just before:
  if (getsockname(cptr->fd, (struct sockaddr *)&sock, &len) == -1
      || (sock.sin_port = 0)    /* Reset sin_port and let OS choose
      || bind(cptr->authfd, (struct sockaddr *)&sock, len) == -1)

This initialises len correctly, and everything then works :)

--
On a sidenote, I noticed the result of this failure is that the clients
socket is closed, surely closing the authfd would be better than just
cutting off the client? :P
The authfd then never gets closed, and also the ircd hits 100% cpu,
presumably because this client is still in a list somewhere, but with a
closed Fd, maybe, not looked :)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@22 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: Bleep <tomh@inxpress.net>
Bleep [Tue, 7 Mar 2000 02:44:06 +0000 (02:44 +0000)]
Author: Bleep <tomh@inxpress.net>
Log message:
Fix for gte's large channel patch

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@21 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: Run <carlo@alinoe.com>
Bleep [Tue, 7 Mar 2000 00:56:36 +0000 (00:56 +0000)]
Author: Run <carlo@alinoe.com>
Log message:
Overview of changes
-------------------

- The ircd will now always use bind() to bind sockets to interfaces,
  the compile option VIRTUAL_HOST has been removed therefore as it
  is turned on by default now.

- It has become possible to specify in the ircd.conf the interfaces
  to which each listen port should bind to, per port. A default is
  available too though.

- The ircd will now correctly use the same interface as the client
  used to connect to the server when doing an identd lookup.

- It is not needed anymore for the hostname in the M: line to resolve.
  Moreover, if you want to hide your server, make sure it doesn't :).
  If it DOES resolve, then it should be the correct IP-number of
  the actually host (one of your interfaces), in that case it will
  be just like the current ircu with VIRTUAL_HOST defined.

Each interface has an IP-number, you can list those by typing the
following command on the UNIX prompt:

ifconfig -a

You can specify the interfaces to which a listen port needed to bind
to by giving this IP-number in the corresponding "passwd" field of the
P: line (the third field).  For example, to bind a listen port `6667'
to 127.0.0.1, use:

P::127.0.0.1::6667

At this moment, each P: line represents a client port. With hide8.patch
however, you can also bind the server listen port to an interface
by simply adding a P: line, forinstance:

P::192.168.1.2::4400

would bind the server port to 192.168.1.2.  Here `4400' is the server
port that is specified in the M: line! (You can only have one server
port).  You can of course bind it to more than one interface now
(that was not possible before, it was all (#undef VIRTUAL_HOST) or
only one (#define VIRTUAL_HOST)) by adding more P: lines for port 4400.
For instance:

P::192.168.1.2::4400
P::127.0.0.1::4400

Using a '*' in the password field will bind that port to ALL interfaces,
while using nothing at all will use the DEFAULT inteface.
For example:

P::::6667

will bind a client port 6667 to the DEFAULT interface.

The default interface is determined as follows:

1) If an interface is specified on the commandline (using the -w commandline
   option), then that is the default interface;  otherwise
2) If the hostname in the M: line resolves to a local IP number, then that
   is the default interface;  otherwise
3) All interfaces will be bound by default (as if a '*' was specified).

For outgoing connect (/connect and /uping), the ircd will use a slightly
different "default" interface:

1) If the IP of the peer server to connect is 127.0.0.1 it will use
   127.0.0.1 as interface; otherwise
2) see 1) above
3) see 2) above
4) The last interface specified in a P: line in the ircd.conf for the
   server port that is not 127.0.0.1 is the default interface;  otherwise
5) see 3) above

However, I wouldn't worry about this too much: it should do what is
intuitively right.

Finally, the syntax of /CONNECT and /UPING have been extended.
It now is possible to specify an IP-number explicitely to distinguish
between different C/N: lines.

You can still do:

/CONNECT target.server 4400 remote.server

but you can also use:

/CONNECT target.server <IP number>:4400 remote.server

For instance, if "remote.server" had the following C/N lines for
target.server:

C:111.111.111.111:passwd:target.server
N:111.111.111.111:passwd:target.server
C:127.0.0.1:passwd:target.server
N:127.0.0.1:passwd:target.server

Then you can specify to which interface you want to connect
by using:

/CONNECT target.server 111.111.111.111:4400 remote.server

or

/CONNECT target.server 127.0.0.1:4400 remote.server

by default it will use the C: line at the top.

If you want to hide your HUB, then you can apply this patch --
add C/N lines for all your peers using 127.0.0.1 as IP number
and set up portwarders (ask Nemesi for help with the latter).

Of course your peers need to fix their and ircd.conf and rehash,
as well as use a portforwarder too (like ssh) but they won't need
to patch their servers.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@20 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: Run <carlo@alinoe.com>
Bleep [Sat, 22 Jan 2000 17:47:08 +0000 (17:47 +0000)]
Author:      Run <carlo@alinoe.com>
Log message:
After running into a restart problem with Amsterdam1 today, I found
the following bug
[Fixup for $BINDIR/$SYMLINK in config-sh.in]

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@19 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: WildThang
Danny Mitchell [Fri, 21 Jan 2000 17:32:30 +0000 (17:32 +0000)]
Author: WildThang
Log message: Fixed configuration option for BADCHAN. should keep previous config settings.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@18 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: Bleep <tomh@inxpress.net>
Bleep [Thu, 20 Jan 2000 04:52:48 +0000 (04:52 +0000)]
Author:     Bleep <tomh@inxpress.net>
Log message:
Bump version in .patches

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@17 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: David M <captj@superlink.net>
Bleep [Thu, 20 Jan 2000 04:51:31 +0000 (04:51 +0000)]
Author:     David M <captj@superlink.net>
            Run     <carlo@alinoe.com>
Log message:
- Fixes a bug making all of the patch's functionality restricted to global
opers, whereas it was intended to be for both local and global opers, since
it only affects the local server.

- Now requires opers who want to join a local channel where they normally
couldnt to use a /join &channel OVERRIDE to force the join. This generates
a HACK(4) server notice. Previous patch was silent on forced joins.

Update URL in readme.www

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@16 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: WildThang
Danny Mitchell [Tue, 11 Jan 2000 02:34:42 +0000 (02:34 +0000)]
Author: WildThang
Log message: After discussion wit Bleep, due to the amount of controversy
we'll put this back.  I guess if the admins/opers feel strong enough that
wallops are being abused, they can put forth a CFV or something to either
fix the operators, or change wallops however is decided. I still encourage
the patch bleep wrote for use with other networks as an option. We'll leave
it such that by default, it doesnt change the behavior of wallops.
 Signed.... "The Threat to Undernet" *grin*. Damn I'm in a good mood today.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@15 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: WildThang & Bleep
Danny Mitchell [Wed, 5 Jan 2000 04:27:25 +0000 (04:27 +0000)]
Author: WildThang & Bleep
Log message:
 Minor cleanup to eliminate some of the problems we have been experiencing
on the network.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@14 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: Bleep <tomh@inxpress.net>
Bleep [Mon, 3 Jan 2000 19:49:40 +0000 (19:49 +0000)]
Author: Bleep <tomh@inxpress.net>
Log message:
Re: [Coder-Com] Y2K patch (actually, a Yany patch)
"ChangeLog" is updated but ".patches" isn't.
Bumped patch number in .patches

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@13 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: Run <carlo@alinoe.com>
Bleep [Sat, 1 Jan 2000 00:00:33 +0000 (00:00 +0000)]
Author: Run <carlo@alinoe.com>
Log message:
Y2K patch (actually, a Yany patch) Extensively tested it.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@12 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: Bleep <tomh@inxpress.net>
Bleep [Sat, 11 Dec 1999 08:54:13 +0000 (08:54 +0000)]
Author: Bleep <tomh@inxpress.net>
Log message:
Bug Fix. This fixes a bug which was causing stale entries to be left in
the client hash table when names were changed.
From Isomer:
I believe that it doesn't actually /do/ anything if your at the head of
the bucket.  It should remove you from the bucket and place you in the new
one.  Patch should be trivial for someone with cvs access to apply.

int hChangeClient(aClient *cptr, char *newname)
{
  register HASHREGS oldhash = strhash(cptr->name);
  register HASHREGS newhash = strhash(newname);
  register aClient *tmp;

  tmp = clientTable[oldhash];

  if (tmp == cptr)
    return 0;
  /* ^^^^^^^^ shouldn't we do something here? */

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@11 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: David M <captjay@superlink.net>
Bleep [Mon, 29 Nov 1999 00:26:42 +0000 (00:26 +0000)]
Author: David M <captjay@superlink.net>
Log message:
- added configuration option to allow opers to set modes on local channels
even if they are not oped.

- added configuration option to allow opers to walk through modes on local
channels, since they are required to be on a channel to be able to set
modes on it.

- added configuration option to prevent opers from being deoped from local
channels.

- added configuration option to allow opers to bypass the maximum number of
channels per user.

Detailed behavior changes:

If the admin so choses, opers can now use /mode on local channels even if
they are not oped. In that case, a server notice is generated (SNO_HACK4),
and to clients, it appears that the local server set the mode. The server
notice is not propagated to other servers.

If activated in the configuration, opers can join local channels under any
circumstances. Doing so does not generate a server notice. Note that the
oper can still not talk in the channel if he is banned.

Preventing opers from being deoped on local channels results in the user
attempting the deop to receive a new numeric reply (498) stating he cannot
kick or deop an oper on a local channel. An oper can deop himself, though.
Provided again to fill the service gaps on local channels, allowing admins
who want it to implement "services" for their local channels.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@10 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: WT
Danny Mitchell [Sun, 28 Nov 1999 05:44:17 +0000 (05:44 +0000)]
Author: WT
Log message:

 Cleaning things up a bit.
 Yeah, before you gripe about it, I ran the idea of using the numeric
 past thomas, he agreed, although its used on efnet, no reason to waste it
 when it means something simular here.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@9 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: WT
Danny Mitchell [Sun, 28 Nov 1999 05:43:25 +0000 (05:43 +0000)]
Author: WT
Log message:

 Cleaning things up a bit.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@8 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoLets hope that I did this right :)
Danny Mitchell [Sun, 28 Nov 1999 01:36:32 +0000 (01:36 +0000)]
Lets hope that I did this right :)
BADCHAN patch, Remote usage defaults YES, local usage defaults NO.
Warning is given, LOCAL USAGE is NOT approved for undernet.

Author: WT
Log message:

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@7 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoAuthor: Isomer <perry@coders.net>
Bleep [Thu, 25 Nov 1999 02:07:53 +0000 (02:07 +0000)]
Author: Isomer <perry@coders.net>
Log message:
Remove STAT_MASTER and BOOT_OPER functionality.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@6 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoThis commit was generated by cvs2svn to compensate for changes in r2,
Bleep [Tue, 16 Nov 1999 05:13:14 +0000 (05:13 +0000)]
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@3 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

24 years agoStandard project directories initialized by cvs2svn.
(no author) [Tue, 16 Nov 1999 05:13:14 +0000 (05:13 +0000)]
Standard project directories initialized by cvs2svn.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1 c9e4aea6-c8fd-4c43-8297-357d70d61c8c