All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiple I/O on a serial device
@ 2004-09-15 12:52 Nicolas Olivier
  2004-09-15 13:05 ` Miguel-Munoz
  2004-09-16  7:45 ` James Chapman
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolas Olivier @ 2004-09-15 12:52 UTC (permalink / raw)
  To: linux-ppp


Hello,

I'm trying to setup multiple instances of locals ppp in order to test a L2TP daemon.
The problem, is that once ppp sets up the line discipline nothing can be read from or
written to the associated serial device. So I was wondering if there was an easy way
to do multiple I/O on a serial, or maybe "link" I/O of two serials.
If anyone has suggestions, it would be greatly appreciated.

Nicolas Olivier

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Multiple I/O on a serial device
  2004-09-15 12:52 Multiple I/O on a serial device Nicolas Olivier
@ 2004-09-15 13:05 ` Miguel-Munoz
  2004-09-16  7:45 ` James Chapman
  1 sibling, 0 replies; 3+ messages in thread
From: Miguel-Munoz @ 2004-09-15 13:05 UTC (permalink / raw)
  To: linux-ppp

Hi,

Now, I´m just trying to do something like this.
Somebody told me that you can use PTYs (pseudo terminals).
You can look in man: "openpty" and "forkpty".
The question is to do a simple task that create a pseudo-terminal.
This PTY is like a pipe; on one end you see the pipe, and on
the other you see a virtual ttySxx, where you can attach pppd.
After this, the new task can read from the other end and
decide if put the data to a real ttySxx.

Please, if you are suceed on it, let me know.

Miguel
----- Original Message ----- 
From: "Nicolas Olivier" <nolivier@alphalink.fr>
To: <linux-ppp@vger.kernel.org>
Sent: Wednesday, September 15, 2004 2:52 PM
Subject: Multiple I/O on a serial device


>
> Hello,
>
> I'm trying to setup multiple instances of locals ppp in order to test a
L2TP daemon.
> The problem, is that once ppp sets up the line discipline nothing can be
read from or
> written to the associated serial device. So I was wondering if there was
an easy way
> to do multiple I/O on a serial, or maybe "link" I/O of two serials.
> If anyone has suggestions, it would be greatly appreciated.
>
> Nicolas Olivier
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Multiple I/O on a serial device
  2004-09-15 12:52 Multiple I/O on a serial device Nicolas Olivier
  2004-09-15 13:05 ` Miguel-Munoz
@ 2004-09-16  7:45 ` James Chapman
  1 sibling, 0 replies; 3+ messages in thread
From: James Chapman @ 2004-09-16  7:45 UTC (permalink / raw)
  To: linux-ppp

Have you looked at OpenL2TP?

http://openl2tp.sourceforge.net/

/james

> I'm trying to setup multiple instances of locals ppp in order to
> test a L2TP daemon.
>
> The problem, is that once ppp sets up the line discipline nothing
> can be read from or written to the associated serial device. So I
> was wondering if there was an easy way to do multiple I/O on a
> serial, or maybe "link" I/O of two serials.
>
> If anyone has suggestions, it would be greatly appreciated.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-16  7:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-15 12:52 Multiple I/O on a serial device Nicolas Olivier
2004-09-15 13:05 ` Miguel-Munoz
2004-09-16  7:45 ` James Chapman

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.