public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jonathan Larmour <jlarmour@redhat.com>
To: David.Karlberg@combitechsystems.com
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] TCP/IP over PPP
Date: Thu, 16 Aug 2001 07:18:00 -0000	[thread overview]
Message-ID: <3B7BD611.657256DA@redhat.com> (raw)
In-Reply-To: <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

      reply	other threads:[~2001-08-16  7:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-16  5:20 David.Karlberg
2001-08-16  7:18 ` Jonathan Larmour [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B7BD611.657256DA@redhat.com \
    --to=jlarmour@redhat.com \
    --cc=David.Karlberg@combitechsystems.com \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).