> >> >However, I recently upgraded to RedHat 5.1 and have since been unable to
> get
> >> >diald to work.
> >> >Vanilla Diald goes through the connection process but fails to start PPP.
.......
> >> >- don't seem to be able to get it to read/write the pipes properly. Syslog
> >> >reports the errors similar to:
> >> >diald[nnn]: requests complete access to /tmp/dctrl-xxx
> >> >diald[nnn]: failure to read /temp/dctrl-xxx - device not configured.
> >> >
Success!
I Started the whole diald installation from scratch and original sources with the
0.16+.16.5 patch. This compiled on RedHat 5.1 without a hitch.
To simplify installation, I installed the diald-0.16.5-201.i386.rpm on the system and
simply replaced the diald executable in the /usr/sbin directory with the newly
compiled one. The diald-config-1.2.1noarch.rpm and
diald-config-1.2.1-metered.noarch.rpm RPMS were then installed. Diald comes up fine
with the /etc/rc.d/init.d/diald script. Diald now starts up PPP perfectly.
However, dctrl still did not work. This seemed to be a problem with the fifo pipe
being accessed before it was properly initialised. I therefore patched the diald.c
code to insert a delay between the pipe being requested and used.
The code: system("sleep 1"); was inserted just after line 453 in diald.c. The code
block now reads:
.....
} else if (buf[7] != 0 && buf[7] == ' ') {
syslog(LOG_INFO,"FIFO: full monitor connection to %s requested",
buf+k);
j = 255; /* Heavy weight connection requested */
k = 8;
system("sleep 1");
}
.....
I know this is a bit of a cludge but it works fine and only pauses diald while dctrl
starts up....
Thanks for all the help.
Pieter.
--
Pieter Meiring
Medical Imaging
[EMAIL PROTECTED]
--
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]