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.

I am guessing that you need to switch the device driver into the "raw"
line discipline, meaning that no interpretation is done on the bytes you
send. In particular, you don't want "backspaces" and such to do anything
special, newlines converted to carriage-return-linefeeds, or anything of
this sort. So consider doing the equivalent of "stty raw -echo".

But, perhaps if you don't know or don't want to format the PPP headers,
yourself, you need the "PPP line discipline". Check out (I just googled)
http://www.faqs.org/docs/linux_network/x-087-2-serial.ttys.html.
To change the line discipline, look at the source of stty's "line" parameter
(or wait for somebody more knowledgable to answer...).

-- 
Nadav Har'El                        |    Wednesday, Aug 3 2005, 27 Tammuz 5765
[EMAIL PROTECTED]             |-----------------------------------------
Phone +972-523-790466, ICQ 13349191 |Enjoy the new millennium; it might be
http://nadav.harel.org.il           |your last.

=================================================================
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