Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ppp: Remove some g_prints | Denis Kenzior | 2011-02-28 | 1 | -8/+0 |
| | |||||
* | gatchat: explicitly compare pointers to NULL | Lucas De Marchi | 2010-11-29 | 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> | ||||
* | ppp: Add MAX_IPCP_FAILURE to avoid timeout quickly | Zhenhua Zhang | 2010-07-09 | 1 | -1/+9 |
| | | | | | | 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. | ||||
* | ppp: Don't accept 0 ip-addr/dns1/dns2 | Denis Kenzior | 2010-06-29 | 1 | -3/+4 |
| | |||||
* | ppp: Refactor server-side API | Denis Kenzior | 2010-06-29 | 1 | -4/+11 |
| | | | | | | | | | | 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. | ||||
* | ppp: Tweak set_server_info API some more | Denis Kenzior | 2010-06-29 | 1 | -7/+1 |
| | |||||
* | ppp: Refactor server RCR action | Denis Kenzior | 2010-06-28 | 1 | -40/+40 |
| | | | | | We need to generate the Conf-Rej / Conf-Nak in the same order as the client sent us. | ||||
* | ppp: Refactor client RCR action | Denis Kenzior | 2010-06-28 | 1 | -29/+27 |
| | |||||
* | ppp: Simplify the logic by re-using code | Denis Kenzior | 2010-06-28 | 1 | -6/+1 |
| | |||||
* | ppp: Minor style tweaks | Denis Kenzior | 2010-06-28 | 1 | -9/+9 |
| | |||||
* | gatppp: Add PPP server extension | Zhenhua Zhang | 2010-06-28 | 1 | -32/+207 |
| | | | | | 1. Add interface to set PPP server info by g_at_ppp_set_server_info. 2. Pass local and peer address through IPCP handshaking. | ||||
* | ppp: Fix incorrect packet length for little-endian | Zhenhua Zhang | 2010-06-23 | 1 | -1/+1 |
| | | | | | packet->length is in TCP/IP network byte order. It needs to call ntohs() to convert to host byte order, which is little-endian. | ||||
* | ppp: get rid of ppp_enter_phase | Denis Kenzior | 2010-04-30 | 1 | -2/+3 |
| | | | | | | | This function simply didn't have the context of why the phase was being entered. Instead have each protocol notify GAtPPP as to what is happening. We already had this more or less for IPCP and AUTH events, this just now formalizes it for LCP as well. | ||||
* | ppp: Introduce ppp_net_down_notify | Denis Kenzior | 2010-04-13 | 1 | -0/+1 |
| | |||||
* | ppp: Introduce ppp_net_up_notify and use it | Denis Kenzior | 2010-04-13 | 1 | -2/+1 |
| | | | | This is slightly cleaner way than defining a weird callback function. | ||||
* | ppp: Let the upper layer handle open / up events | Denis Kenzior | 2010-04-13 | 1 | -9/+0 |
| | | | | | | This removes the need for the layer_started functions in lcp and ipcp. For LCP the link is always up unless the socket has been closed, and for IPCP the link should be opened as soon as LCP is ready anyway. | ||||
* | ppp: Reset the options whenever the layer is down | Denis Kenzior | 2010-04-13 | 1 | -6/+19 |
| | | | | So we can re-negotiate the options if the layer is opened again. | ||||
* | ppp: Rename data to pppcp | Denis Kenzior | 2010-04-13 | 1 | -6/+2 |
| | |||||
* | ppp: Use flags not booleans for ipcp options | Denis Kenzior | 2010-04-09 | 1 | -25/+30 |
| | |||||
* | ppp: Rip out the now unused option string stuff | Denis Kenzior | 2010-04-08 | 1 | -12/+0 |
| | | | | Using wireshark is much easier | ||||
* | ppp: port IPCP to the new option framework | Denis Kenzior | 2010-04-08 | 1 | -62/+160 |
| | |||||
* | ppp: Move some one-time setters to the proto | Denis Kenzior | 2010-04-08 | 1 | -15/+15 |
| | |||||
* | ppp: Add rca callback | Denis Kenzior | 2010-04-07 | 1 | -3/+21 |
| | | | | | When the other side acks our options, then let us apply these options locally and start using them | ||||
* | ppp: Cleanup ipcp.c | Denis Kenzior | 2010-04-07 | 1 | -8/+6 |
| | |||||
* | Refactor: Make struct pppcp declaration private | Denis Kenzior | 2010-04-05 | 1 | -4/+1 |
| | |||||
* | Refactor: add pppcp_set_prefix | Denis Kenzior | 2010-04-05 | 1 | -1/+1 |
| | |||||
* | Refactor: add pppcp_get_ppp | Denis Kenzior | 2010-04-05 | 1 | -1/+1 |
| | |||||
* | Refactor: add pppcp_set_option_strings | Denis Kenzior | 2010-04-05 | 1 | -1/+1 |
| | |||||
* | Refactor: Move valid code selection to ipcp/lcp | Denis Kenzior | 2010-04-05 | 1 | -0/+9 |
| | | | | We already have a set_valid_codes function, let us use it | ||||
* | Refactor: Make option_scan more type safe | Denis Kenzior | 2010-04-05 | 1 | -1/+2 |
| | |||||
* | Refactor: Make option_process more typesafe | Denis Kenzior | 2010-04-05 | 1 | -3/+2 |
| | | | | | | 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. | ||||
* | Refactor: Add pppcp_set_data & pppcp_get_data | Denis Kenzior | 2010-04-05 | 1 | -7/+6 |
| | | | | | Using these functions makes the code much cleaner than trying to pass the priv pointer everywhere | ||||
* | Make pppcp_code enum a private structure | Marcel Holtmann | 2010-04-05 | 1 | -9/+1 |
| | |||||
* | Make pppcp_event_type enum a private structure | Marcel Holtmann | 2010-04-05 | 1 | -1/+1 |
| | |||||
* | Make GAtPPP fields really private | Marcel Holtmann | 2010-04-03 | 1 | -10/+4 |
| | |||||
* | Fix coding style with callback structures | Marcel Holtmann | 2010-04-02 | 1 | -6/+6 |
| | |||||
* | Refactor: Get rid of (now) pointless comments | Denis Kenzior | 2010-04-02 | 1 | -2/+0 |
| | |||||
* | Refactor: Get rid of packet handler registrations | Denis Kenzior | 2010-04-02 | 1 | -8/+0 |
| | | | | | | 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. | ||||
* | Split out ipcp protocol into ppp_ipcp.c | Denis Kenzior | 2010-04-02 | 1 | -0/+243 |