summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-04-05Refactor: Make struct pppcp declaration privateDenis Kenzior4-42/+39
2010-04-05Refactor: add pppcp_set/get_magic_numberDenis Kenzior3-2/+15
2010-04-05Refactor: add pppcp_set_prefixDenis Kenzior4-2/+8
2010-04-05Refactor: add pppcp_get_pppDenis Kenzior4-5/+12
2010-04-05Refactor: add pppcp_set_option_stringsDenis Kenzior4-2/+9
2010-04-05Refactor: Move valid code selection to ipcp/lcpDenis Kenzior4-58/+50
We already have a set_valid_codes function, let us use it
2010-04-05Refactor: Move packet_ops to a static look-upDenis Kenzior2-18/+16
No need to allocate space for this, as it is always the same for all instances.
2010-04-05Refactor: Make option_scan more type safeDenis Kenzior4-6/+8
2010-04-05Refactor: Make option_process more typesafeDenis Kenzior4-10/+12
option_process was declared with two gpointer arguments for the sole reason of being used as a GFunc. Casting to a GFunc or re-writing the foreach as a loop is preferable.
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 Kenzior5-221/+256
2010-04-02ppp: fix event generation on closeKristen Carlson Accardi3-17/+5
Prevents too early transition to PPP_DEAD
2010-04-02Fix: Make the C-APDU logic more readableDenis Kenzior1-7/+11
2010-04-02Style: Multiline commentsDenis Kenzior1-3/+6
2010-04-02Fix: Tweak the language parserDenis Kenzior1-2/+9
2010-04-02Fix: Remove erroneous commentDenis Kenzior1-1/+0
2010-04-02Fix: AT Commands are probably just textDenis Kenzior1-3/+3
2010-04-02Fix: Trivial indentation issuesDenis Kenzior1-16/+16
2010-04-02Add parser for browser identity objectsYang Gu2-0/+18
2010-04-02Add parser for language objectsYang Gu1-0/+21
2010-04-02Add parser for dtmf string objectsYang Gu1-0/+24
2010-04-02Add parser for bc repeat indicator objectsYang Gu1-0/+10
2010-04-02Add parser for at response objectsYang Gu1-0/+10
2010-04-02Add parser for at command objectsYang Gu1-0/+32
2010-04-02Add parser for date-time and time zone objectsYang Gu1-0/+19