summaryrefslogtreecommitdiffstats
path: root/gatchat
AgeCommit message (Collapse)AuthorFilesLines
2010-04-05Refactor: Add pppcp_set_data & pppcp_get_dataDenis Kenzior4-11/+22
Using these functions makes the code much cleaner than trying to pass the priv pointer everywhere
2010-04-05Make pppcp_code enum a private structureMarcel Holtmann4-37/+51
2010-04-05Make pppcp_event_type enum a private structureMarcel Holtmann5-28/+47
2010-04-05Refactor: Move to a transition state tableDenis Kenzior2-544/+121
It is much more compact to re-implement the transition states as a table as opposed to functions with switch/case statements. The logic is made much easier to follow and much of the code duplication is eliminated
2010-04-05Refactor: Make the enum assignments explicitDenis Kenzior1-16/+16
They will be used for certain magic later on
2010-04-05Refactor: Move the state definition to ppp_cp.cDenis Kenzior2-18/+18
2010-04-05ppp: implement Max-Failure counterKristen Carlson Accardi2-0/+23
put a cap on the number of Configure-Nak packets we send.
2010-04-03Move PPP constants where they are usedMarcel Holtmann4-19/+21
2010-04-03Make GAtPPP fields really privateMarcel Holtmann4-56/+64
2010-04-02Hide internals of ring buffer structureMarcel Holtmann2-6/+8
2010-04-02Remove circular inclusion protection from ring buffer headerMarcel Holtmann1-13/+0
2010-04-02Fix some cases where g_try_new should be usedMarcel Holtmann4-12/+3
2010-04-02Move frame NULL checks into the unstuffing functionMarcel Holtmann1-8/+5
2010-04-02Fix coding style with callback structuresMarcel Holtmann2-12/+12
2010-04-02ppp: implement net closeKristen Carlson Accardi2-5/+7
2010-04-02Refactor: Get rid of (now) pointless commentsDenis Kenzior4-8/+0
2010-04-02Also the default case should have a break statementMarcel Holtmann1-1/+2
2010-04-02Remove the PPP option from gsmdialDenis Kenzior1-6/+0
Pointless since we should always connect using PPP
2010-04-02Refactor: Get rid of packet handler registrationsDenis Kenzior6-74/+26
There are only about 4 protocols that the current ppp code handles and it is doubtful that it will grow much more. There's no point in having an extensive packet handler registration framework.
2010-04-02Fix tabs vs. whitespace coding style violationMarcel Holtmann1-1/+1
2010-04-02Add more missing break statementsMarcel Holtmann3-3/+6
2010-04-02ppp: fix missing breaks in switch statementsKristen Carlson Accardi1-5/+4
2010-04-02Add missing break or fall through comments to switch statementsMarcel Holtmann1-1/+22
2010-04-02Always reset option_rval for every optionMarcel Holtmann1-2/+8
2010-04-02Add missing arpa/inet.h includesMarcel Holtmann1-0/+1
2010-04-02ppp: use queue to transmitKristen Carlson Accardi3-44/+94
Since we are using non buffered I/O, use a queue to transmit when buffer space is available.
2010-04-02Split out ipcp protocol into ppp_ipcp.cDenis Kenzior4-220/+254
2010-04-02ppp: fix event generation on closeKristen Carlson Accardi3-17/+5
Prevents too early transition to PPP_DEAD
2010-04-01Remove PPP CP event_queue handling and process events directlyMarcel Holtmann2-55/+4
2010-04-01Fix: Stop infinite attempts to registerDenis Kenzior1-8/+11
Sometimes if the modem firmware is particularly nutty we will see frequent cell-reselections at startup, resulting in us attempting to register multiple times. Try to stop this behavior by keeping track of what state we're in and hoping the hardware is at least somewhat sane.
2010-04-01Remove obfuscation for some of the event handlingMarcel Holtmann2-42/+13
2010-04-01Move functions from ppp.c into gatppp.cMarcel Holtmann3-538/+502
2010-04-01Remove PPP event_queue handling and process events directlyMarcel Holtmann3-44/+27
2010-04-01Check FCS while unstuffing the byte streamMarcel Holtmann1-10/+11
2010-04-01Remove PPP recv_queue handling and process frames directlyMarcel Holtmann3-31/+22
2010-04-01Remove usage of AT+CGACT for nowMarcel Holtmann1-22/+5
2010-04-01Fix order of PPP frame recording and processingMarcel Holtmann1-1/+1
2010-04-01Add support for recording PPP sessions in pppdump formatMarcel Holtmann5-5/+62
2010-04-01Implement g_at_ppp_set_debug supportMarcel Holtmann5-15/+34
2010-04-01Add some debugging information to PPP authentication handlingMarcel Holtmann1-3/+6
2010-04-01Remove useless pppcp_protocol_data structureMarcel Holtmann5-40/+15
2010-04-01Remove forward declarations in PPP network handlingMarcel Holtmann1-81/+75
2010-04-01Add debugging for PPP LCP and IPCP optionsMarcel Holtmann4-8/+73
2010-03-31Use ppp%d as PPP interface name instead of tun%dMarcel Holtmann1-0/+1
2010-03-31Fix: Introduce PPP data stateDenis Kenzior1-0/+13
Some modems send PPP data introspersed along with the CONNECT final response. Fixup the parser so we can still detect the final response.
2010-03-31Fix: Update gsm dial to the new GAtPPP APIDenis Kenzior1-17/+8
2010-03-31Refactor: Use GAtDisconnectFunc for ppp disconnectDenis Kenzior4-10/+11
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 Kenzior3-13/+34
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-31Fix ampersand commands checkAndrzej Zaborowski1-2/+2
Also remove a trailing tab.