Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2011-10-10 | gatchat: Update copyright information | Marcel Holtmann | 1 | -1/+1 | |
2011-06-29 | ppp: Don't regenerate options when unchanged | Denis Kenzior | 1 | -0/+8 | |
2011-06-29 | GAtPPP: Add PFC option support | Guillaume Zajac | 1 | -3/+32 | |
2011-06-29 | GAtPPP: Add ACFC option support | Guillaume Zajac | 1 | -3/+32 | |
2011-02-28 | ppp: Remove some g_prints | Denis Kenzior | 1 | -2/+0 | |
2011-02-16 | PPP: Use default ACCM (0xffffffff) to trasmit | Martin Xu | 1 | -3/+5 | |
Using my Huawei EM770W modem, if set ACCM as 0x00000000, RXJ- event breaks PPP link, after IP package transmit for a while. Using default ACCM, the issue can be fixed. I tested it at China Unicom networks. | |||||
2011-02-14 | PPP: Fix transmit ACCM and receive ACCM mixup | Martin Xu | 1 | -2/+14 | |
According to RFC1662 Section 7.1, ACCM Configuration Option is used to inform the peer which control characters MUST remain mapped when the peer sends them. | |||||
2010-11-29 | gatchat: explicitly compare pointers to NULL | Lucas De Marchi | 1 | -3/+3 | |
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 | -1/+1 | |
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/+2 | |
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-04-30 | ppp: get rid of ppp_enter_phase | Denis Kenzior | 1 | -3/+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. | |||||
2010-04-22 | ppp: Request MRU if we ever get NAKed with it | Denis Kenzior | 1 | -3/+45 | |
Huawei E160G hardware seems to NAK our configure request and suggest that it will never send packets bigger than 1440 bytes. Since we don't particularly care (our receive ring buffer is 4K, so it can handle 2048 byte packets), we just re-send the Configure Request with the preferred value. | |||||
2010-04-22 | ppp: Fix trivial copy paste error | Denis Kenzior | 1 | -1/+1 | |
2010-04-22 | ppp: implement MRU option | Kristen Carlson Accardi | 1 | -0/+4 | |
If the peer requests a MRU option, set the mtu for the network phase. When we are in link establishment phase, we should continue to behave as if no option has been set and the peer should use the default MRU. This option is required for the Huawei E160G modem. | |||||
2010-04-14 | ppp: nak unknown auth protocol | Kristen Carlson Accardi | 1 | -2/+28 | |
If we are sent a Config-Request for an auth proto other than CHAP with MD5, send a NAK. | |||||
2010-04-13 | ppp: remove pfc and acfc | Kristen Carlson Accardi | 1 | -5/+1 | |
We will not support pfc or acfc | |||||
2010-04-13 | ppp: remove references to magic number | Kristen Carlson Accardi | 1 | -5/+1 | |
We will not support loopback detection. | |||||
2010-04-13 | ppp: Transition the phase directly | Denis Kenzior | 1 | -2/+3 | |
Use of the generate event function, while more 'pure' with regard to how the spec views transitions, actually makes code more difficult to read. Instead use phase transitions directly inside gatppp. This still bleeds through a little into lcp code, and probably should be fixed in a better way eventually. | |||||
2010-04-13 | ppp: Let the upper layer handle open / up events | Denis Kenzior | 1 | -10/+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. | |||||
2010-04-13 | Merge: make link | Denis Kenzior | 1 | -2/+2 | |
2010-04-13 | ppp: Reset the options whenever the layer is down | Denis Kenzior | 1 | -5/+13 | |
So we can re-negotiate the options if the layer is opened again. | |||||
2010-04-13 | ppp: Use pppcp_signal functions directly | Denis Kenzior | 1 | -27/+0 | |
No real need to wrap them behind lcp_ functions | |||||
2010-04-09 | ppp: Use flags instead of booleans for lcp options | Denis Kenzior | 1 | -3/+5 | |
2010-04-08 | ppp: Rip out the now unused option string stuff | Denis Kenzior | 1 | -18/+0 | |
Using wireshark is much easier | |||||
2010-04-08 | ppp: Port LCP to the new option framework | Denis Kenzior | 1 | -73/+99 | |
2010-04-08 | ppp: Move some one-time setters to the proto | Denis Kenzior | 1 | -6/+6 | |
2010-04-07 | ppp: Add rca callback | Denis Kenzior | 1 | -0/+18 | |
When the other side acks our options, then let us apply these options locally and start using them | |||||
2010-04-07 | ppp: Remove lcp_protocol_reject | Denis Kenzior | 1 | -5/+0 | |
Use pppcp_send_reject_protocol | |||||
2010-04-07 | ppp: Hide away the magic_number in ppp_lcp.c | Denis Kenzior | 1 | -8/+19 | |
2010-04-06 | ppp: Verify magic number is not zero | Denis Kenzior | 1 | -1/+10 | |
2010-04-05 | Refactor: Make struct pppcp declaration private | Denis Kenzior | 1 | -4/+1 | |
2010-04-05 | Refactor: add pppcp_set/get_magic_number | Denis Kenzior | 1 | -2/+2 | |
2010-04-05 | Refactor: add pppcp_set_prefix | Denis Kenzior | 1 | -1/+1 | |
2010-04-05 | Refactor: add pppcp_get_ppp | Denis Kenzior | 1 | -4/+4 | |
2010-04-05 | Refactor: add pppcp_set_option_strings | Denis Kenzior | 1 | -1/+1 | |
2010-04-05 | Refactor: Move valid code selection to ipcp/lcp | Denis Kenzior | 1 | -0/+14 | |
We already have a set_valid_codes function, let us use it | |||||
2010-04-05 | Refactor: Make option_scan more type safe | Denis Kenzior | 1 | -1/+2 | |
2010-04-05 | Refactor: Make option_process more typesafe | Denis Kenzior | 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. | |||||
2010-04-05 | Refactor: Add pppcp_set_data & pppcp_get_data | Denis Kenzior | 1 | -1/+0 | |
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 | -14/+1 | |
2010-04-05 | Make pppcp_event_type enum a private structure | Marcel Holtmann | 1 | -3/+3 | |
2010-04-02 | Fix coding style with callback structures | Marcel Holtmann | 1 | -6/+6 | |
2010-04-02 | Refactor: Get rid of (now) pointless comments | Denis Kenzior | 1 | -2/+0 | |
2010-04-02 | Refactor: Get rid of packet handler registrations | Denis Kenzior | 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. | |||||
2010-04-02 | Add more missing break statements | Marcel Holtmann | 1 | -3/+3 | |
2010-04-02 | ppp: fix event generation on close | Kristen Carlson Accardi | 1 | -13/+4 | |
Prevents too early transition to PPP_DEAD | |||||
2010-04-01 | Remove useless pppcp_protocol_data structure | Marcel Holtmann | 1 | -10/+3 | |
2010-04-01 | Add debugging for PPP LCP and IPCP options | Marcel Holtmann | 1 | -0/+18 | |
2010-03-26 | ppp: send Protocol-Reject | Kristen Carlson Accardi | 1 | -0/+5 | |
change ppp_decode to store the length of the decoded frame, so that if we have a packet with a protocol we don't understand, we can send Protocol-Reject packets. Modify ppp_cp code to add support for sending Protocol-Reject packet. | |||||
2010-03-25 | ppp: change debug output to include control protocol prefix | Kristen Carlson Accardi | 1 | -2/+10 | |