From: Christian <crich-ml@beronet.com>
To: linux-ppp@vger.kernel.org
Subject: syncppp
Date: Wed, 20 Sep 2006 08:10:28 +0000 [thread overview]
Message-ID: <4510F774.4080104@beronet.com> (raw)
Hi List,
i'm trying to understand how ppp transports frames in the "sync" mode. I
want to do the following scenario:
pppd sync notty
I've hacked pppd to use a simple framing method for stdin/stdout, to
guarantee the transport of complete ppp frames. But unfortunately i
found out, that in the tty.c i get mixed up frames from the
master_pty_f, like i read a buffer and in the buffer i get :
[ppp frame 1][part of ppp frame 2]
the next buffer contains then:
[rest of ppp frame 2]
so that is what i transmit to my sync device, but the other side rejects
the second frame because it seems not valid.
I don't really understand yet where pppd reads the frames from the
kernel device, maybe somebody could give me a pointer.
I just want to check if the frames come like that from the kernel or if
it happens because the slave side pty-buffer gets full befor we can read
it on the master side, so the framing is messed up.
Thanks for any help!
Christian
next reply other threads:[~2006-09-20 8:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-20 8:10 Christian [this message]
2006-09-20 12:40 ` syncppp James Carlson
2006-09-20 15:25 ` syncppp Christian
-- strict thread matches above, loose matches on Subject: below --
2001-08-06 19:15 Syncppp Matt Schulkind
2001-08-06 22:49 ` Syncppp Paul Fulghum
2001-08-07 9:26 ` Syncppp Bob Dunlop
2001-08-07 14:32 ` Syncppp Paul Fulghum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4510F774.4080104@beronet.com \
--to=crich-ml@beronet.com \
--cc=linux-ppp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.