From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200110051050.MAA23204@copernicus.cs.utwente.nl> To: 9fans@cse.psu.edu Subject: Re: [9fans] ppp connection In-reply-to: Your message of "Fri, 05 Oct 2001 12:16:48 +0200." <15293.34960.130274.136619@nido.hilbert.space> References: <15293.34960.130274.136619@nido.hilbert.space> From: Axel Belinfante Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 5 Oct 2001 12:50:01 +0200 Topicbox-Message-UUID: fe460bf6-eac9-11e9-9e20-41e7f4b1d025 I also had problems (which I reported here; I posted a fix that got it working for me at Sat, 05 May 2001 23:01:59 +0200). I used the same approach of making the connection 'by hand'. Ppp already supports PAP. I think you can get debugging output by giving ip/ppp a -d flag. There is also stuff logged via syslog to /sys/log/ppp. In my case, the problem seemed to be that the ppp daemon at the other side did not get a HDLC frame character at the start of the frames, which caused the framing to break, with the result that options negotiation failed a few times after which the remote side gave up. It did not get far enough to use the authenication info. (I came to this conclusion by looking at the bytes sent ove the line by a succesfull ppp connection under linux). Looking at the source code gave me the (wrong?) idea that a HDLC frame character is only appended at the end of the frames send. I got it working for me by changing /sys/src/cmd/ip/ppp/ppp.c:523 I added the following two-lines indicated by 'ADDED AFEB' below. Please be aware that this a 'quick' hack to get it working; it would be nice to have it approved (or an alternative suggested) by someone more knowledgable. } else { /* escape and checksum the body */ fcs = PPP_initfcs; to = buf->rptr; /* add frame marker */ /* ADDED AFEB */ *to++ = HDLC_frame; /* ADDED AFEB */ for(bp = b; bp; bp = bp->next){ Axel. > I have been trying to connect myself to the internet using ppp. At > first I tried telco and giving ip/ppp the -p telco!9090903432 parameter, > but obtained can't open telco!9090903432. I made a csquery and saw > that everything works ok and the file is there and everything. I got > stuck at this point and so I tried another aproach I had read Boyd > had suggested on the archives, writing the commands for the call myself. > I wrote: > > ip/ppp -uf -b 57600 -p /dev/eia1 -s $name:$pass > and after this I typed: > atdt9090903432^M > (wher ^M stands for Control-M). > > I hear the modem dialing, some singing and a I get the message: > CONNECTED 57600 > > Stops the noise and after some time: > > NO CARRIER > > I think it has to do with authentification, because giving wrong > password or user name doesn't change the behaviour. Maybe I need a ppp > which supports PAP?. Where can I get it?. Is there any way to make ppp > more verbose?.