Code: Select all
void neterror(char *s)
{
switch (errno) {
case EADDRINUSE:
strcpy(s, "Address already in use");
break;
Code: Select all
case EINVAL:
strcpy(s, "Invalid namespace");
break;
Code: Select all
[EINVAL] Invalid argument. Some invalid argument (such as
unmounting a device that is not currently mounted,
mentioning an undefined signal in signal() or kill(), or
reading or writing a file for which lseek() has generated
a negative pointer).
Code: Select all
u@box# telnet
> open [server.address] 6667
Well what i´ve ment is that i connected the eggdrop to a psyBNC on localhost, and from there to Undernet, and it worked OK. I´ve also considered what ppslim said, to connect to a local irc server, which i´ve also tried, and again everything worked ok.JayC wrote:I've made a test and saw that it does connect, but to localhost. I've installed psyBNC and ran the psyBNC script and it got connected, but on other servers , no.
Code: Select all
[jay-c@JayC jay-c]$ gcc --version
2.96
[jay-c@JayC jay-c]$
Code: Select all
127.0.0.1 localhost.localdomain localhost
Code: Select all
order hosts,bind
multi on
Code: Select all
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
Code: Select all
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
Code: Select all
void neterror(char *s)
{
switch (errno) {
case EADDRINUSE:
strcpy(s, "Address already in use");
break;
Code: Select all
case EINVAL:
strcpy(s, "Invalid namespace");
break;
(replacing the values correctly)/etc/hosts wrote: 127.0.0.1 localhost.localdomain localhost
125.231.120.144 irc.server.name.here
Where is net.c? In eggdrop src directory?ppslim wrote:Now we are getting to the route of the problem.
net.c is locate in the eggdrop src directory, and contains the code for eggdrop managment of network connections.
The hostname you have above does not exist, or at least does not resolve. As such, this is causing the error about "not found".
Have you setup your name servers correctly in resolve.conf
Have you tried adding the IRC server to the /etc/hosts file(replacing the values correctly)/etc/hosts wrote: 127.0.0.1 localhost.localdomain localhost
125.231.120.144 irc.server.name.here
then try eggdrop.
If this works, it sounds like it may be a system configuration issue else where.