lkml.org 
[lkml]   [1996]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Current Status
Date
Thus spake Larry 'Daffy' Daffner, splattered hither:
> -> - IRC/IRCD connection via the localhost (loopback) interface does not work.
>
> I suspect this is a Feature, not a bug. Does ircd try to bind to the
> 127.0.0.1 address explicitly? If so, then it's probably due to the
> tightened port binding rules. Someone with the know-how care to
> comment?

Hmmm... let's see...

/*
** Bind to a local IP# (with unknown port - let unix decide) so
** we have some chance of knowing the IP# that gets used for a host
** with more than one IP#.
*/
/* No we don't bind it, not all OS's can handle connecting with
** an already bound socket, different ip# might occur anyway
** leading to a freezing select() on this side for some time.
** I had this on my Linux 1.1.88 --Run
if (bind(cptr->fd, (struct sockaddr *)&mysk, sizeof(mysk)) == -1)
{
report_error("error binding to local port for %s:%s", cptr);
return NULL;
}
*/

Looks like all Undernet-derived ircd's don't bind to the IP explicitly. I
don't know about EFnet-derived ones, but I suspect they probably caught on.

Flame me if I'm wrong :-) -rt

--
Ryan Tucker . . ann-arbor.mi.us.undernet.org irc admin
rtucker@ttgcitn.com . . . netins.net user development group
http://puck.nether.net/~rtucker . . . nether.net co-root/god
PGP Public Key: finger rtucker@worf.netins.net. . . ttgcitn.com owner


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.047 / U:1.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site