Skip to contentSkip to conversation

Initial patches for gatchat PPP support

PATCH In review [email protected] 2 participants 2 messages Mar 11, 2010 – Mar 12, 2010

lore
Share & tools
lore
#0 lore raw

cover Initial patches for gatchat PPP support

These patches implement PPP support for gatchat. They're not complete, but are useful enough to play with if anyone wants to. I included a patch to gsmdial which allows you to invoke the PPP routines after the CONNECT callback. This patch will create a TUN interface, which you will then have to manually configure using the IP Address and DNS information that is output by gsmdial to stdout. There are many items yet to be done, mostly they fall into these categories:
* clean exit and Link Loss path
* Cleanup and deallocate memory properly
* Implement Error path (Configure-Reject etc).

I tested this on the AT&T sierra modem, but not with any other modem. I appreciate your feedback.

#1 lore raw

Hi Kristen,

Quoted 11 lines

These patches implement PPP support for gatchat. They're not complete, but are useful enough to play with if anyone wants to. I included a patch to gsmdial which allows you to invoke the PPP routines after the CONNECT callback. This patch will create a TUN interface, which you will then have to manually configure using the IP Address and DNS information that is output by gsmdial to stdout. There are many items yet to be done, mostly they fall into these categories:
* clean exit and Link Loss path
* Cleanup and deallocate memory properly
* Implement Error path (Configure-Reject etc).

Quoted 2 lines

I tested this on the AT&T sierra modem, but not with any other modem. I appreciate your feedback.

some general comments. Please fix your .gitconfig for using git send-email to show your name along with the email address. Otherwise Denis or I have to go into every patch and fix it up.

All exported structs should be typedefed and its content hidden. If they are not meant to be public or can be kept private to the source file where they are used, then that is preferred.

And of course everything public needs to be namespaced with GAtPPP and g_at_ppp to have a clear distinction and not clashes.

Two question come to my mind. Have looked into assuring that everything is big endian safe? What about unaligned access to the data structures? Seems in some cases you take uint16 and unit32 directly from the stream. Both things can be fixed up later with patches on top of it, but please keep it in mind.

Regards

Marcel