Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-04-05 | Refactor: Add pppcp_set_data & pppcp_get_data | Denis Kenzior | 4 | -11/+22 | |
Using these functions makes the code much cleaner than trying to pass the priv pointer everywhere | |||||
2010-04-05 | Make pppcp_code enum a private structure | Marcel Holtmann | 4 | -37/+51 | |
2010-04-05 | Make pppcp_event_type enum a private structure | Marcel Holtmann | 5 | -28/+47 | |
2010-04-05 | Refactor: Move to a transition state table | Denis Kenzior | 2 | -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-05 | Refactor: Make the enum assignments explicit | Denis Kenzior | 1 | -16/+16 | |
They will be used for certain magic later on | |||||
2010-04-05 | Refactor: Move the state definition to ppp_cp.c | Denis Kenzior | 2 | -18/+18 | |
2010-04-05 | ppp: implement Max-Failure counter | Kristen Carlson Accardi | 2 | -0/+23 | |
put a cap on the number of Configure-Nak packets we send. | |||||
2010-04-03 | Move PPP constants where they are used | Marcel Holtmann | 4 | -19/+21 | |
2010-04-03 | Make GAtPPP fields really private | Marcel Holtmann | 4 | -56/+64 | |
2010-04-02 | Hide internals of ring buffer structure | Marcel Holtmann | 2 | -6/+8 | |
2010-04-02 | Remove circular inclusion protection from ring buffer header | Marcel Holtmann | 1 | -13/+0 | |
2010-04-02 | Fix some cases where g_try_new should be used | Marcel Holtmann | 4 | -12/+3 | |
2010-04-02 | Move frame NULL checks into the unstuffing function | Marcel Holtmann | 1 | -8/+5 | |
2010-04-02 | Fix coding style with callback structures | Marcel Holtmann | 2 | -12/+12 | |
2010-04-02 | ppp: implement net close | Kristen Carlson Accardi | 2 | -5/+7 | |
2010-04-02 | Refactor: Get rid of (now) pointless comments | Denis Kenzior | 4 | -8/+0 | |
2010-04-02 | Also the default case should have a break statement | Marcel Holtmann | 1 | -1/+2 | |
2010-04-02 | Remove the PPP option from gsmdial | Denis Kenzior | 1 | -6/+0 | |
Pointless since we should always connect using PPP | |||||
2010-04-02 | Refactor: Get rid of packet handler registrations | Denis Kenzior | 6 | -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-02 | Fix tabs vs. whitespace coding style violation | Marcel Holtmann | 1 | -1/+1 | |
2010-04-02 | Add more missing break statements | Marcel Holtmann | 3 | -3/+6 | |
2010-04-02 | ppp: fix missing breaks in switch statements | Kristen Carlson Accardi | 1 | -5/+4 | |
2010-04-02 | Add missing break or fall through comments to switch statements | Marcel Holtmann | 1 | -1/+22 | |
2010-04-02 | Always reset option_rval for every option | Marcel Holtmann | 1 | -2/+8 | |
2010-04-02 | Add missing arpa/inet.h includes | Marcel Holtmann | 1 | -0/+1 | |
2010-04-02 | ppp: use queue to transmit | Kristen Carlson Accardi | 3 | -44/+94 | |
Since we are using non buffered I/O, use a queue to transmit when buffer space is available. | |||||
2010-04-02 | Split out ipcp protocol into ppp_ipcp.c | Denis Kenzior | 4 | -220/+254 | |
2010-04-02 | ppp: fix event generation on close | Kristen Carlson Accardi | 3 | -17/+5 | |
Prevents too early transition to PPP_DEAD | |||||
2010-04-01 | Remove PPP CP event_queue handling and process events directly | Marcel Holtmann | 2 | -55/+4 | |
2010-04-01 | Fix: Stop infinite attempts to register | Denis Kenzior | 1 | -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-01 | Remove obfuscation for some of the event handling | Marcel Holtmann | 2 | -42/+13 | |
2010-04-01 | Move functions from ppp.c into gatppp.c | Marcel Holtmann | 3 | -538/+502 | |
2010-04-01 | Remove PPP event_queue handling and process events directly | Marcel Holtmann | 3 | -44/+27 | |
2010-04-01 | Check FCS while unstuffing the byte stream | Marcel Holtmann | 1 | -10/+11 | |
2010-04-01 | Remove PPP recv_queue handling and process frames directly | Marcel Holtmann | 3 | -31/+22 | |
2010-04-01 | Remove usage of AT+CGACT for now | Marcel Holtmann | 1 | -22/+5 | |
2010-04-01 | Fix order of PPP frame recording and processing | Marcel Holtmann | 1 | -1/+1 | |
2010-04-01 | Add support for recording PPP sessions in pppdump format | Marcel Holtmann | 5 | -5/+62 | |
2010-04-01 | Implement g_at_ppp_set_debug support | Marcel Holtmann | 5 | -15/+34 | |
2010-04-01 | Add some debugging information to PPP authentication handling | Marcel Holtmann | 1 | -3/+6 | |
2010-04-01 | Remove useless pppcp_protocol_data structure | Marcel Holtmann | 5 | -40/+15 | |
2010-04-01 | Remove forward declarations in PPP network handling | Marcel Holtmann | 1 | -81/+75 | |
2010-04-01 | Add debugging for PPP LCP and IPCP options | Marcel Holtmann | 4 | -8/+73 | |
2010-03-31 | Use ppp%d as PPP interface name instead of tun%d | Marcel Holtmann | 1 | -0/+1 | |
2010-03-31 | Fix: Introduce PPP data state | Denis Kenzior | 1 | -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-31 | Fix: Update gsm dial to the new GAtPPP API | Denis Kenzior | 1 | -17/+8 | |
2010-03-31 | Refactor: Use GAtDisconnectFunc for ppp disconnect | Denis Kenzior | 4 | -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-31 | Refactor: GAtPPP connect callback | Denis Kenzior | 3 | -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-31 | Style: Whitespace damage due to spaces, not tabs | Denis Kenzior | 1 | -7/+7 | |
Also use proper indentation style | |||||
2010-03-31 | Fix ampersand commands check | Andrzej Zaborowski | 1 | -2/+2 | |
Also remove a trailing tab. |