summaryrefslogtreecommitdiffstats
path: root/gatchat/gatppp.c
AgeCommit message (Collapse)AuthorFilesLines
2014-06-21gatchat: Fix up minor coding style issuesDenis Kenzior1-0/+2
2014-06-21gatchat: implement PAP authenticationPhilip Paeps1-2/+48
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-29ppp: Add basic length sanity checksDenis Kenzior1-4/+5
2011-06-29gatppp: Refactor tx pathDenis Kenzior1-15/+11
2011-06-29gatppp: Refactor rx pathDenis Kenzior1-22/+32
2011-06-29gatppp: Re-format & re-word commentsDenis Kenzior1-6/+2
2011-06-29GAtPPP: Add PFC option supportGuillaume Zajac1-1/+62
2011-06-29GAtPPP: Add ACFC option supportGuillaume Zajac1-23/+73
2011-05-25gatppp: Set the suspend function in open / listenDenis Kenzior1-12/+18
In case it was set before calling these functions
2011-05-24gatppp: Refactor PPP APIDenis Kenzior1-92/+38
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: Make sure to clean up guard_timeout_sourceDenis Kenzior1-0/+5
2011-05-24gatppp: Rename guard_timeout_src to _sourceDenis Kenzior1-5/+4
2011-05-24gatppp: Do not call disconnect func if suspendedGuillaume Zajac1-2/+3
2011-05-24gatppp: Add GAtPPP suspend APIGuillaume Zajac1-0/+40
2011-05-24gatppp: Add GAtPPP resume functionalityGuillaume Zajac1-0/+19
2011-05-24gatppp: Make ppp->fd handling a bit easier to grokDenis Kenzior1-1/+6
2011-05-24gatppp: Ensure created GAtPPP object is not nullDenis Kenzior1-1/+2
2011-05-24gatppp: Add new contructor to use external fdGuillaume Zajac1-1/+32
2011-05-24gatppp: Don't go over 80 characters / lineDenis Kenzior1-1/+1
2011-05-08gatppp: Add API for setting suspend callbackGuillaume Zajac1-0/+24
In situations where the PPP stream can be suspended by the peer, e.g. in the server role using '+++'
2011-02-28gatppp: Try to detect no carrier conditionsDenis Kenzior1-0/+1
2011-02-28gatppp: Delay signaling ppp_downDenis Kenzior1-2/+14
Delay signaling of ppp_down until we exit the GAtHDLC read handler. Otherwise exchanging the read handler on GAtIO might lead to funny double consumption problems.
2011-02-28gatppp: Replace some left-over g_prints with DBGDenis Kenzior1-4/+4
2011-02-28gatppp: Send the final terminate ackDenis Kenzior1-10/+42
In the case where we're going down, but have a pending terminate ack, delay signaling the upper layers until the ack has been put on the wire.
2010-11-29gatchat: explicitly compare pointers to NULLLucas De Marchi1-2/+2
This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // <smpl> @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // </smpl>
2010-09-14Fix common misspellings in gatchatLucas De Marchi1-1/+1
Fix common misspellings by using the list available at http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines From the list cited above, the substitution script found the following misspellings: priviledge->privilege succeded->succeeded
2010-07-07gatppp: Unset disconnect function when unref PPPZhenhua Zhang1-0/+3
Unset IO disconnect function when we try to destroy GAtPPP instance. After freeing the instance, the IO disconnect function should not be invoked.
2010-07-06gatppp: Check ppp instance before unref itZhenhua Zhang1-0/+3
2010-06-29ppp: Refactor server-side APIDenis Kenzior1-5/+50
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-5/+2
2010-06-28ppp: Tweak the set_server_info APIDenis Kenzior1-3/+14
2010-06-28gatppp: Add PPP server extensionZhenhua Zhang1-2/+9
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-06-11gatppp: whitespace issuesDenis Kenzior1-2/+2
2010-06-11gatppp: Unref HDLC when unrefing PPPDenis Kenzior1-0/+2
2010-05-19ppp: implement ppp_packet_newKristen Carlson Accardi1-0/+15
2010-05-10ppp: Keep these defines privateDenis Kenzior1-0/+3
2010-05-10ppp: set address and control fieldKristen Carlson Accardi1-2/+7
Before sending to hdlc, set the address and control field. Fix hardcode of ppp header size.
2010-05-10ppp: transition to dead when lcp finishedKristen Carlson Accardi1-1/+4
Transition to DEAD when lcp is finished and ignore any io disconnects if we are already dead.
2010-04-30ppp: Refactor connect / disconnect callbacksDenis Kenzior1-12/+20
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: get rid of ppp_enter_phaseDenis Kenzior1-41/+73
This function simply didn't have the context of why the phase was being entered. Instead have each protocol notify GAtPPP as to what is happening. We already had this more or less for IPCP and AUTH events, this just now formalizes it for LCP as well.
2010-04-30ppp: Add _from_io constructorDenis Kenzior1-7/+32
2010-04-29ppp: fix return of drop_packet for NETWORK phaseKristen Carlson Accardi1-1/+1
2010-04-29ppp: silently drop invalid packetsKristen Carlson Accardi1-8/+28
2010-04-29ppp: transition to dead when read io destroyedKristen Carlson Accardi1-1/+1
remove call to signal_close for lcp object, it is redundent. If our io is destroyed we are dead, so transition the ppp phase to DEAD so our disconnect callback can be called.
2010-04-28ppp: Hang set_recording off the GAtPPP objectDenis Kenzior1-3/+3
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: Re-add capability to detect io down eventsDenis Kenzior1-0/+9
2010-04-28ppp: Don't crash if the interface wasn't createdDenis Kenzior1-0/+4
2010-04-28ppp: Add getter for HDLC objectDenis Kenzior1-0/+8
2010-04-28ppp: Initial port of PPP to use GAtHDLCDenis Kenzior1-359/+41