This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Multiple PPP interfaces in single unit
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Ãyvind Harboe <oyvind dot harboe at zylin dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 28 Jul 2004 14:15:09 +0100
- Subject: Re: [ECOS] Multiple PPP interfaces in single unit
- References: <1091017108.3449.13.camel@famine>
Ãyvind Harboe <oyvind.harboe@zylin.com> writes:
> Is it possible to use the PPP stack to chain multiple devices via
> the serial ports?
>
> I.e.:
>
> Unit 1
>
> Serial 1 talks to PC via PPP
> Serial 2 talks to unit #2 via PPP
>
> Unit 2:
>
> Serial 1 talks to Unit #1 via PPP
> Serial 2 talks to Unit #3 via PPP
We cannot do this at present, it's an explicit limitation of the
current implementation. The expectation was that most eCos devices
would be solitary remote devices that were dialled into, or dialled
out. So a single PPP connection would be the ususal case.
The main problem is that the PPPD code was designed to instantiate a
separate Unix process for each PPP channel. So there are a lot of
global variables that would need to be duplicated in some way. The
code within the TCP/IP stack itself should not need changing, however.
This is not a trivial job unfortunately, and anything we do would
seriously inhibit any efforts to update the PPP code from the BSD
repository.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss