public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Abreu <skewer@terra.com.br>
To: linux-kernel@vger.kernel.org
Subject: Re: Insert a Propreitary Encapsulation module to PPP
Date: Wed, 03 Sep 2003 01:28:01 -0300	[thread overview]
Message-ID: <3F556DD1.2070707@terra.com.br> (raw)
In-Reply-To: <01C3713C.0DACA2E0.vanitha@agilis.st.com.sg>

Vanitha wrote:
> I want to insert a module which will add a proprietary encapsulation header
> (specific to our systems) and then send out the ppp packet over serial
> interface (it will either be a High speed serial interface or a V.35
> interface).

	You could create a new module based on hdlc_ppp.c, changing the
following line in hdlc_ppp_ioctl():

dev->hard_start_xmit = hdlc->xmit;

	to:

dev->hard_start_xmit = my_new_xmit;

	Then you implement my_new_xmit() that adds the encapsulation and
calls hdlc->xmit() at the end.

	See also hdlc_raw_eth.c on 2.6. It does exactly this.


	Marcelo


      reply	other threads:[~2003-09-03  4:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-02  2:22 Insert a Propreitary Encapsulation module to PPP Vanitha
2003-09-03  4:28 ` Marcelo Abreu [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=3F556DD1.2070707@terra.com.br \
    --to=skewer@terra.com.br \
    --cc=linux-kernel@vger.kernel.org \
    /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