* Insert a Propreitary Encapsulation module to PPP
@ 2003-09-02 2:22 Vanitha
2003-09-03 4:28 ` Marcelo Abreu
0 siblings, 1 reply; 2+ messages in thread
From: Vanitha @ 2003-09-02 2:22 UTC (permalink / raw)
To: 'linux-kernel@vger.kernel.org'
Hi All,
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).
How do i insert a module between ppp and hdlc modules ?. Are there any
documents
which tells more about using the Channel Interface in ppp ?
Do i need to emulate a tty for doing this ?
Thanks,
Vanitha
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Insert a Propreitary Encapsulation module to PPP
2003-09-02 2:22 Insert a Propreitary Encapsulation module to PPP Vanitha
@ 2003-09-03 4:28 ` Marcelo Abreu
0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Abreu @ 2003-09-03 4:28 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-03 4:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-02 2:22 Insert a Propreitary Encapsulation module to PPP Vanitha
2003-09-03 4:28 ` Marcelo Abreu
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 NNTP newsgroup(s).