On Wed, 2005-08-03 at 17:18 +0300, Nadav Har'El wrote:
> On Wed, Aug 03, 2005, Gilad Ben-Yossef wrote about "Transfering PPP over a 
> serial link, oh my...":
> > I hope there is someone here twisted enough to know the answer to my 
> > question :-)
> 
> I'm sorry that I don't have any pppd-hacking experience, so my answer will
> be mostly guessing and quite likely, worthless.
> 
> > Suppose I have a bunch of PPP "packets" and suppose I want to push those 
> > unto a serial line (tty device) which is connected to a modem. The tty 
> > and modem have already been configured to the correct baud rate, dialed, 
> > got a connect string and all.
> > 
> > Is there any magic IOCTL which I need to user unto the tty device to 
> > convince it to transport these PPP "packets" over the tty such that the 
> > host in the other side will actually care to answer.
> > 
> > The magic words seems to be "PPP line decpline" and such but I'm having 
> > a hard time googling and understandng what dark magic pppd does.

PPP is what most of us used to connect to the Internet after the WWW
craze started (and terminal access was no longer adequate) and before
the ISDN and ADSL/Cable eras.

I used the following command in a Perl script, which connected to my ISP
using PPP (disclaimer:  the pppd available in distributions using Linux
kernel 1.2.13 was used; modern pppd may have some different options):

`/usr/sbin/pppd /dev/ttyS3 38400 modem crtscts name $username connect
'/usr/sbin/chat -vf $chatscript' lock defaultroute netmask 255.255.255.0
lcp-echo-interval 15 lcp-echo-failure 30`;

For the computer, which listens on the serial line and waits for
connections, you may need another option.  I never tried this kind of
connection (it was my ISP's headache :-) ), but you may want to read
about the 'passive' option in man pppd.

I don't think any special line discipline settings are needed.  You do
need to make sure that no getty (or similar) process is listening on the
serial port which you want to use before starting pppd which listens on
the same port.
                                   --- Omer
-- 
Jara Cimrman.  A name to remember.
My own blog is at http://www.livejournal.com/users/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to