[patch 1/6] Add PPP protocol support with HDLC framing

Kristen Carlson Accardi kristen at linux.intel.com
Mon Mar 15 15:04:08 PDT 2010


On Thu, 11 Mar 2010 20:17:49 -0600
Denis Kenzior <denkenz at gmail.com> wrote:


> 
> > +			} else {
> > +				/* store last flag character */
> > +				link->buffer[link->index++] = data[pos];
> > +				frame = ppp_decode(link, link->buffer);
> 
> This function along with ppp_decode do almost exactly the same thing as 
> gsm0710_advanced_extract_frame in gsm0710.c.  They both do HDLC frame 
> decoding, and the only difference I can see is in the fcs table.  Can we 
> combine these somehow?

Possibly - although in theory in addition to the escaping that you do
in the gsm0710 code, we have to support a negotiated accm (which you see
I've not yet implemented here).  We also in theory should support PFC and
ACFC (which the one modem I tested with required, otherwise it refused to
ack my Configure-Request).  I think there may eventually be enough 
differences to keep these separate.



More information about the ofono mailing list