This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: TCP/IP over PPP
- To: David dot Karlberg at combitechsystems dot com
- Subject: Re: [ECOS] TCP/IP over PPP
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 16 Aug 2001 15:17:53 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <2253171AF143D21185A60000F8FA748B03795E16@pluto.combitech.se>
David.Karlberg@combitechsystems.com wrote:
>
> Hi,
>
> Is it ...\src\net\eth_drv.c that I should rewrite to create my
> "connection" to PPP ?
I don't think that is most appropriate because things like the MAC address
aren't relevant for example, and this expects the MTU to be 1500 bytes. You
would probably want a separate common PPP-specific layer that did similar
types of things to eth_drv, but also PPP-ish things, probably using the
current eth_drv.c as a starting point.
> Or in wich file should I access the TCP/IP stack to connect it to ppp?
You can plug in a "ppp0" device by adding your device to the NETDEVTAB.
This then gets initted in src/ecos/support.c in the stack.
Now, in the ethernet driver this driver would call into the "common" driver
i.e. eth_drv.c, which would attach the interface to the stack. In the case
of PPP, this type of thing would be mirrored in your PPP clone of eth_drv I
mentioned above.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine