PPP via message queues
Mike Siers
mikes at poliac.com
Tue Oct 23 13:27:24 UTC 2001
Hi Greg,
I did the last ppp upgrade to the current version 2.3.11. I left
all the pty code in the source but currently RTEMS does not
support this. In the future, I would like to investigate it since
dial on demand requires the use of a pty.
I guess the way I would try doing what you require would be to create
your own serial device driver. This would allow the pppd code to remain
unchanged and the serial driver would be responsible for posting messages
and events. PPPD requires the serial device driver to be task driven
so I think this would work. Look at the lib/libc/termios.c file to see
how RTEMS uses the rx and tx daemons for task driven serial drivers.
You may have to modify some data values in the termios data structure to
ensure the termios functions post events to your driver tasks.
Good Luck
Mike Siers
-----Original Message-----
From: gregory.menke at gsfc.nasa.gov [mailto:gregory.menke at gsfc.nasa.gov]
Sent: Monday, October 22, 2001 2:05 PM
To: RTEMS mailing list
Subject: PPP via message queues
Hi,
Our application sources and sinks a serial stream which we'd like to
hook up to the RTEMS pppd. From browsing around the PPP tree, I found
where sys-rtems.c does read() and write(), presumably talking to a
RTEMS serial device. I'd like to either put a pty in there or a
message queue. I saw some references in rtemsmain.c to pty support,
so I'd like to go that way if possible.
Is there support for pty-like things in RTEMS? And if so, any hints
about where to look for them would be much appreciated.
Thanks,
Greg Menke
More information about the users
mailing list