Skip to contentSkip to conversation

Multiple I/O on a serial device

DISCUSSION Nicolas Olivier 3 participants 3 messages Sep 15, 2004 – Sep 16, 2004 PPP protocol drivers and compressors

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 15, 2004 2:52 PM
Subject: Multiple I/O on a serial device

Quoted 4 lines

Hello,

I'm trying to setup multiple instances of locals ppp in order to test a

L2TP daemon.

Quoted 1 line

The problem, is that once ppp sets up the line discipline nothing can be

read from or

Quoted 1 line

written to the associated serial device. So I was wondering if there was

an easy way

Quoted 8 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Nicolas Olivier

Have you looked at OpenL2TP?

http://openl2tp.sourceforge.net/

/james

Quoted 9 lines

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.