summaryrefslogtreecommitdiffstats
path: root/gatchat/gatppp.h
AgeCommit message (Collapse)AuthorFilesLines
2014-06-21gatchat: implement PAP authenticationPhilip Paeps1-0/+8
Make the authentication method configurable, CHAP or PAP, defaulting to CHAP (i.e.: previous behaviour). Implementation details: o If PAP is configured, we NAK the CHAP authentication protocol option in LCP configuration requests and suggest PAP instead. This works around the amusing requirement of 3GPP TS 29.061 that modems must send a forced positive acknowledgement of the authentication method tried (i.e.: the modem will successfully accept any CHAP handshake, but if the network only supports PAP, the modem will hang up when it tries and fails to activate the PDP context) o The PAP Authenticate-Request is resent a hard-coded three times at ten-second intervals. This may be a bit too persistent. Chances are if it doesn't work the first time, it'll never work, but the RFC insists that we MUST retry.
2011-10-10gatchat: Update copyright informationMarcel Holtmann1-1/+1
2011-06-29GAtPPP: Add PFC option supportGuillaume Zajac1-0/+1
2011-06-29GAtPPP: Add ACFC option supportGuillaume Zajac1-0/+2
2011-05-24gatppp: Refactor PPP APIDenis Kenzior1-6/+5
Remove the series of constructors which take a GIOChannel directly. These weren't used. This change also allows the construction of the PPP object and filling in various pertinent information without starting the HDLC processing. The client must now use g_at_ppp_open() for the client side or g_at_ppp_listen() for the server side to start the true PPP session. The previous owner of the GAtIO object must be suspended beforehand.
2011-05-24gatppp: Add GAtPPP suspend APIGuillaume Zajac1-0/+1
2011-05-24gatppp: Add GAtPPP resume functionalityGuillaume Zajac1-0/+1
2011-05-24gatppp: Add new contructor to use external fdGuillaume Zajac1-0/+1
2011-05-08gatppp: Add API for setting suspend callbackGuillaume Zajac1-0/+2
In situations where the PPP stream can be suspended by the peer, e.g. in the server role using '+++'
2010-06-29ppp: Refactor server-side APIDenis Kenzior1-0/+3
The biggest update here is that the server needs to be in dormant mode by default, so as not to send a Configure-Req to the peer until the peer is ready. This requires adding special constructor for LCP to initialize it to Stopped state instead of initial state. Along with this, we pass the server local IP directly to the ppp server constructor.
2010-06-29ppp: Tweak set_server_info API some moreDenis Kenzior1-2/+1
2010-06-28ppp: Tweak the set_server_info APIDenis Kenzior1-2/+3
2010-06-28gatppp: Add PPP server extensionZhenhua Zhang1-1/+5
1. Add interface to set PPP server info by g_at_ppp_set_server_info. 2. Pass local and peer address through IPCP handshaking.
2010-04-30ppp: Refactor connect / disconnect callbacksDenis Kenzior1-7/+13
Right now it is very hard to figure out whether we should be calling the connect callback or the disconnect callback. So refactor as follows: - Connect callback is only called once the net is actually up - Disconnect callback is called once ppp is down, with a reason for why it is so.
2010-04-30ppp: Add _from_io constructorDenis Kenzior1-1/+2
2010-04-28ppp: Hang set_recording off the GAtPPP objectDenis Kenzior1-1/+1
Marcel: recording right now only works for PPP, so we'd need some sort of multi-protocol support. So for now expose set_recording to be used through the main PPP object. HDLC object recording support needs to be extended.
2010-04-28ppp: Add getter for HDLC objectDenis Kenzior1-0/+3
2010-04-28ppp: Initial port of PPP to use GAtHDLCDenis Kenzior1-1/+0
2010-04-13ppp: Add set / get password & usernameDenis Kenzior1-1/+4
Also refactor the set credentials function, we will be removing the auth object shortly
2010-04-09Remove one empty line and add another oneMarcel Holtmann1-0/+1
2010-04-01Move functions from ppp.c into gatppp.cMarcel Holtmann1-0/+1
2010-04-01Add support for recording PPP sessions in pppdump formatMarcel Holtmann1-1/+2
2010-04-01Implement g_at_ppp_set_debug supportMarcel Holtmann1-0/+1
2010-03-31Refactor: Use GAtDisconnectFunc for ppp disconnectDenis Kenzior1-4/+3
The ppp argument to the current disconnect callback is useless as the ppp structure is most likely stored in user data anyway.
2010-03-31Refactor: GAtPPP connect callbackDenis Kenzior1-3/+3
The connect callback was not giving enough information and the information it was providing was not in a convenient form. - Provide the ppp interface name (e.g. tun0) - Provide ip, dns1 & dns2 as strings - Do not send the ppp structure in the callback, it is most likely present in the user data anyway
2010-03-31Style: Whitespace damage due to spaces, not tabsDenis Kenzior1-7/+7
Also use proper indentation style
2010-03-22CHAP with MD5 authentication supportKristen Carlson Accardi1-0/+2
Authentication support with CHAP and MD5
2010-03-22Basic PPP protocol supportKristen Carlson Accardi1-0/+58
This patch implements the basic PPP protocol. LCP, NCP etc. are handled in a different patch.