Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2011-05-11 | gatppp: fix ppp protocol-reject constructing error | Caiwen Zhang | 1 | -3/+3 | |
In PPP Protocol-Reject package the 'rejected data field' should be a copy of the rejected package, the copy starts from the data field. besides, Protocol-Reject package include a 'rejected protocol field', it is the same as the protocol field of the rejected package. Protocol-Reject package structure is: | PPP_header | rejected protocol | rejected data The rejected package structure is: | Addr | Control | protocol | data So the Protocol-Reject package data field is copied from the 3rd byte of the rejected package. | |||||
2011-04-26 | gatppp: Fix crash related to not stopping timers | Martin Xu | 1 | -0/+2 | |
In case of offline modem when GPRS data connection is connected, if gprs atom is removed before PPP termination process is complete, the terminate_timer will not be stop. It will cause ofonod crash when the timer times out. | |||||
2011-02-28 | ppp_cp: Replace some left over g_prints with DBG | Denis Kenzior | 1 | -3/+3 | |
2010-11-29 | gatchat: explicitly compare pointers to NULL | Lucas De Marchi | 1 | -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-07-09 | ppp: Add MAX_IPCP_FAILURE to avoid timeout quickly | Zhenhua Zhang | 1 | -2/+6 | |
We use IPCP NAK response to stall the progress of acquiring the client IP address from DHCP server. So we need to increase the max failure of NAKs in IPCP handshaking. | |||||
2010-06-29 | ppp: Refactor server-side API | Denis Kenzior | 1 | -2/+7 | |
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-21 | ppp: Fix leak in pppcp_send_protocol_reject | Zhenhua Zhang | 1 | -0/+2 | |
Free the reject pppcp packet after ppp_transmit. | |||||
2010-05-19 | ppp: implement ppp_packet_new | Kristen Carlson Accardi | 1 | -4/+1 | |
2010-05-10 | ppp: set address and control field | Kristen Carlson Accardi | 1 | -4/+2 | |
Before sending to hdlc, set the address and control field. Fix hardcode of ppp header size. | |||||
2010-04-29 | ppp: transition to dead when read io destroyed | Kristen Carlson Accardi | 1 | -0/+2 | |
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-28 | ppp: Make pppcp functions const correct | Denis Kenzior | 1 | -33/+27 | |
2010-04-26 | ppp: use default ACCM when sending LCP codes 1-7 | Kristen Carlson Accardi | 1 | -0/+8 | |
According to the spec, you must transmit all Link Configuration, Termination, and Code-Reject packets as if no options had been negotiated. This requires that when encoding we use the default ACCM of 0xffffffff when sending these types of packets. | |||||
2010-04-13 | ppp: remove references to magic number | Kristen Carlson Accardi | 1 | -1/+7 | |
We will not support loopback detection. | |||||
2010-04-13 | ppp: Refactor how tls/tlu/tld/tlf are used | Denis Kenzior | 1 | -13/+6 | |
With the upper layer driving these, the special handling is no longer required. | |||||
2010-04-13 | ppp: Add pppcp_signal_down | Denis Kenzior | 1 | -0/+5 | |
For use when the link is abruptly terminated by the remote side | |||||
2010-04-12 | Use ppp_debug() for PPP CP event debug statements | Marcel Holtmann | 1 | -13/+20 | |
2010-04-09 | ppp: Trivial style fix | Denis Kenzior | 1 | -2/+2 | |
Be more explicit | |||||
2010-04-08 | ppp: Stop the timer when re-starting | Denis Kenzior | 1 | -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-08 | ppp: Rip out the old option processing | Denis Kenzior | 1 | -453/+102 | |
Put in the new option processing | |||||
2010-04-08 | ppp: Make iterators work all the time | Denis Kenzior | 1 | -1/+1 | |
2010-04-08 | ppp: Move some one-time setters to the proto | Denis Kenzior | 1 | -59/+25 | |
2010-04-07 | ppp: Add rca callback | Denis Kenzior | 1 | -30/+23 | |
When the other side acks our options, then let us apply these options locally and start using them | |||||
2010-04-07 | ppp: Add pppcp option iterators | Denis Kenzior | 1 | -0/+46 | |
2010-04-07 | ppp: Move pppcp_timer_data private | Denis Kenzior | 1 | -0/+8 | |
2010-04-07 | ppp: Hide away the magic_number in ppp_lcp.c | Denis Kenzior | 1 | -11/+0 | |
2010-04-06 | ppp: Remove OPTION_ERR, treat errors as reject | Denis Kenzior | 1 | -5/+2 | |
2010-04-06 | ppp: Move up the look up table definition | Denis Kenzior | 1 | -15/+15 | |
2010-04-05 | Refactor: Make struct pppcp declaration private | Denis Kenzior | 1 | -8/+35 | |
2010-04-05 | Refactor: add pppcp_set/get_magic_number | Denis Kenzior | 1 | -0/+10 | |
2010-04-05 | Refactor: add pppcp_set_prefix | Denis Kenzior | 1 | -0/+5 | |
2010-04-05 | Refactor: add pppcp_get_ppp | Denis Kenzior | 1 | -0/+5 | |
2010-04-05 | Refactor: add pppcp_set_option_strings | Denis Kenzior | 1 | -0/+5 | |
2010-04-05 | Refactor: Move valid code selection to ipcp/lcp | Denis Kenzior | 1 | -58/+13 | |
We already have a set_valid_codes function, let us use it | |||||
2010-04-05 | Refactor: Move packet_ops to a static look-up | Denis Kenzior | 1 | -16/+16 | |
No need to allocate space for this, as it is always the same for all instances. | |||||
2010-04-05 | Refactor: Make option_scan more type safe | Denis Kenzior | 1 | -2/+2 | |
2010-04-05 | Refactor: Make option_process more typesafe | Denis Kenzior | 1 | -3/+6 | |
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-05 | Refactor: Add pppcp_set_data & pppcp_get_data | Denis Kenzior | 1 | -3/+12 | |
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 | 1 | -0/+49 | |
2010-04-05 | Make pppcp_event_type enum a private structure | Marcel Holtmann | 1 | -1/+39 | |
2010-04-05 | Refactor: Move to a transition state table | Denis Kenzior | 1 | -541/+120 | |
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: Move the state definition to ppp_cp.c | Denis Kenzior | 1 | -4/+17 | |
2010-04-05 | ppp: implement Max-Failure counter | Kristen Carlson Accardi | 1 | -0/+22 | |
put a cap on the number of Configure-Nak packets we send. | |||||
2010-04-03 | Move PPP constants where they are used | Marcel Holtmann | 1 | -0/+2 | |
2010-04-03 | Make GAtPPP fields really private | Marcel Holtmann | 1 | -15/+7 | |
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 | ppp: use queue to transmit | Kristen Carlson Accardi | 1 | -0/+1 | |
Since we are using non buffered I/O, use a queue to transmit when buffer space is available. | |||||
2010-04-01 | Remove PPP CP event_queue handling and process events directly | Marcel Holtmann | 1 | -54/+4 | |
2010-04-01 | Implement g_at_ppp_set_debug support | Marcel Holtmann | 1 | -9/+15 | |