lkml.org 
[lkml]   [2003]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Insert a Propreitary Encapsulation module to PPP
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.836 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site