Hi list,
I'm still trying to get diald to work. After no success with the Linux PPC
distribution, I moved on to Yellow Dog Linux. This is no better - diald still
hangs.
With help from Lazarus Long (many thanks!) I've been through the usual problems
with diald connection configuration (on Linux PPC) and come to the conclusion that the
problem is more obscure.
I'm no Linux programmer but I've been through some of the code for diald and
pppd and included additional log messages to checkpoint progress and argument
lists. This has shown that diald passes the arguments correctly to pppd when
'exec'ing it. I have compared a manual start with a diald start and added
pppd options to diald.conf where there are differences (except for specifying
the MRU and MTU size). So, whether diald or manual connection is used, the
options received by pppd are the same.
The connection establishment through diald hangs within pppd at the point
where an attempt is made to reopen the tty device. The relevant code in the
"main.c" routine of pppd is:
/* reopen tty if necessary to wait for carrier */
if (connector == NULL && modem && devnam[0] != 0) {
for (;;) {
if ((i = open(devnam, O_RDWR)) >= 0) - HANGS HERE!
break;
if (errno != EINTR) {
error("Failed to reopen %s: %m", devnam);
status = EXIT_OPEN_FAILED;
}
if (!persist || errno != EINTR || hungup || kill_link)
goto fail;
}
There is no return from the "i = open(devnam, O_RDRW)" even though devnam is
specified correctly as /dev/ttyS0. Hence the modem has connected to the
remote router but no protocol negotiation ever takes place. When diald times
out and kills pppd, the program continues after the "i = open(devnam, O_RDRW)"
and dies somewhere - I haven't traced this.
I guess this starts to point the finger at:
- pppd or
- the linux implementation for the Mac or
- the way diald handles devices or
- something else ....
I'd appreciate your comments and help on how to proceed with sorting things out.
My system is:
- PowerMac 9600/200 running Yellow Dog Linux (based on Red Hat)
- kernel 2.2.12 (upgraded from the version supplied with Yellow Dog Linux) -
AF_PACKET and Ethertap included
- pppd 2.3.10
- diald 0.99.2
TIA,
Iain Stevenson
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]