From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7368113603929549492==" MIME-Version: 1.0 From: Denis Kenzior Subject: Re: [patch 1/6] Add PPP protocol support with HDLC framing Date: Mon, 15 Mar 2010 16:20:15 -0600 Message-ID: <201003151720.16409.denkenz@gmail.com> In-Reply-To: <20100315150408.45104132@kcaccard-MOBL3> List-Id: To: ofono@ofono.org --===============7368113603929549492== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Kristen, > On Thu, 11 Mar 2010 20:17:49 -0600 > = > Denis Kenzior wrote: > > > + } else { > > > + /* store last flag character */ > > > + link->buffer[link->index++] =3D data[pos]; > > > + frame =3D 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. > = You will have to explain to me what that all means ;) However, it would be = ideal if we can create a set of utilities that can be shared between ppp an= d = mux code (maybe with extra configuration parameters turning on/off or passi= ng in = parameters required for pfc/acfc/accm support.) No sense writing, testing and debugging (and more importantly maintaining) = the = same code twice. Regards, -Denis --===============7368113603929549492==--