summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-04-09ppp: Use flags not booleans for ipcp optionsDenis Kenzior1-25/+30
2010-04-09ppp: Use flags instead of booleans for lcp optionsDenis Kenzior1-3/+5
2010-04-08ppp: Stop the timer when re-startingDenis Kenzior1-10/+9
In case we receive NAK/REJ we should stop and re-start the timer, otherwise we end up generating multiple Conf-Reqs
2010-04-08ppp: Rip out the now unused option string stuffDenis Kenzior3-31/+0
Using wireshark is much easier
2010-04-08ppp: Port LCP to the new option frameworkDenis Kenzior1-73/+99
2010-04-08ppp: port IPCP to the new option frameworkDenis Kenzior1-62/+160
2010-04-08ppp: Rip out the old option processingDenis Kenzior2-464/+129
Put in the new option processing
2010-04-08ppp: Fix make some functions const correctDenis Kenzior2-4/+4
2010-04-08ppp: Make iterators work all the timeDenis Kenzior1-1/+1
2010-04-08ppp: Move some one-time setters to the protoDenis Kenzior4-87/+52
2010-04-07ppp: Add rca callbackDenis Kenzior4-40/+71
When the other side acks our options, then let us apply these options locally and start using them
2010-04-07ppp: Add pppcp option iteratorsDenis Kenzior2-0/+63
2010-04-07ppp: Remove lcp_protocol_rejectDenis Kenzior2-6/+1
Use pppcp_send_reject_protocol
2010-04-07ppp: Move pppcp_timer_data privateDenis Kenzior2-8/+8
2010-04-07ppp: Cleanup ipcp.cDenis Kenzior1-8/+6
2010-04-07ppp: Hide away the magic_number in ppp_lcp.cDenis Kenzior3-22/+19
2010-04-06ppp: Use auth->proto, not ppp->protoDenis Kenzior1-2/+1
Otherwise we move on to NCP stage prematurely
2010-04-06Fix: Allow setting of tx ACCMDenis Kenzior2-4/+4
Specification is explicit that ACCM defaults to ~0
2010-04-06ppp: Remove OPTION_ERR, treat errors as rejectDenis Kenzior2-6/+2
2010-04-06ppp: Verify magic number is not zeroDenis Kenzior1-1/+10
2010-04-06ppp: Move up the look up table definitionDenis Kenzior1-15/+15
2010-04-06ppp: Implement receive ACCMDenis Kenzior1-2/+8
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.