Oron Peled wrote:
It seems you tried Nadav's (semi-correct) answer about "raw"
line discipline before I sent my answer...
"stty raw line 3" was what needed in the end.
I know. I looked at the tty.h file to find out that N_PPP is 3 to begin with
Since I hate to be wrong, I dug into the kernel sources after all,
and <asm/termios.h>:
...
/* line disciplines */
#define N_TTY 0
#define N_SLIP 1
#define N_MOUSE 2
#define N_PPP 3
#define N_STRIP 4
#define N_AX25 5
#define N_X25 6 /* X.25 async */
...
Now look who's 3... you just used stty(1) to send the relevant
ioctl and selected the "ppp" (not "raw") line discipline.
The real puzzle is:
- How all the PPP state behaved?
I transported ALL the PPP "packets", including the initial LCP and ICP
headers intact. I never said I started shuffeling packets to the other
side from the middle of the connection.
- Where did cooked/raw disappeared (they must be controled
via some other ioctl while in the N_TTY discipline, but
I'm tired for searching the sources for now...)
It didn't dispear at all - it's an orthogonal setting and in fact I
needed both "stty line 3" and "stty raw" to get it working, so you were
BOTH right - I just didn't see your answer in time so I figuted it out
myself :-)
Thanks to all who helped.
Gilad
--
Gilad Ben-Yossef <[EMAIL PROTECTED]>
Codefidence. A name you can trust(tm)
Web: http://codefidence.com | SIP: [EMAIL PROTECTED]
IL: +972.9.8650475 ext. 201 | Fax: +972.9.8850643
US: +1.360.2275194 ext. 201 | Cel: +972.52.8260388
"I am Jack's Overwritten Stack Pointer"
-- Hackers Club, the movie
=================================================================
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]