Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-04-26 | ppp: use default ACCM when sending LCP codes 1-7 | Kristen Carlson Accardi | 1 | -0/+10 | |
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-26 | ppp: discard non-LCP packets in ESTABLISHMENT phase | Kristen Carlson Accardi | 1 | -0/+7 | |
2010-04-22 | ppp: change MTU on TUN device when MRU option received | Kristen Carlson Accardi | 1 | -1/+2 | |
2010-04-22 | ppp: Shut off IPCP when entering TERMINATING phase | Denis Kenzior | 1 | -0/+2 | |
2010-04-22 | ppp: implement MRU option | Kristen Carlson Accardi | 1 | -0/+16 | |
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-13 | ppp: Refing the channel is actually not necessary | Denis Kenzior | 1 | -3/+2 | |
The read_watch and write_watches both take a ref | |||||
2010-04-13 | ppp: remove pfc and acfc | Kristen Carlson Accardi | 1 | -26/+0 | |
We will not support pfc or acfc | |||||
2010-04-13 | ppp: Get rid of net_open and net_close | Denis Kenzior | 1 | -11/+16 | |
There really isn't a need for these now | |||||
2010-04-13 | ppp: Introduce ppp_net_down_notify | Denis Kenzior | 1 | -0/+5 | |
2010-04-13 | ppp: Introduce ppp_net_up_notify and use it | Denis Kenzior | 1 | -12/+14 | |
This is slightly cleaner way than defining a weird callback function. | |||||
2010-04-13 | ppp: Hide ppp_net definition in ppp_net.c | Denis Kenzior | 1 | -2/+2 | |
2010-04-13 | ppp: Use chap functions directly, instead of auth | Denis Kenzior | 1 | -11/+9 | |
2010-04-13 | ppp: introduce ppp_auth_notify | Denis Kenzior | 1 | -0/+8 | |
This function will be notified whenever authentication has succeeded / failed. This can happen in the authentication phase or during the network phase. If auth fails, then we should proceed to the terminate phase. | |||||
2010-04-13 | ppp: Add set / get password & username | Denis Kenzior | 1 | -5/+30 | |
Also refactor the set credentials function, we will be removing the auth object shortly | |||||
2010-04-13 | ppp: Transition the phase directly | Denis Kenzior | 1 | -65/+23 | |
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 | -0/+2 | |
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 | ppp: unref should mean a hard shutdown | Denis Kenzior | 1 | -27/+20 | |
This can happen when e.g. the modem is physically removed from the system and it is not feasible to wait for the nice shutdown state to be reached. | |||||
2010-04-13 | ppp: Signal Down & Close when socket is closed | Denis Kenzior | 1 | -0/+2 | |
2010-04-13 | ppp: Use pppcp_signal functions directly | Denis Kenzior | 1 | -5/+6 | |
No real need to wrap them behind lcp_ functions | |||||
2010-04-13 | ppp: Keep track when read watcher dies | Denis Kenzior | 1 | -4/+11 | |
2010-04-13 | ppp: Remove unused define | Denis Kenzior | 1 | -1/+0 | |
2010-04-12 | Remove useless debug in PPP transmit destroy callback | Marcel Holtmann | 1 | -2/+1 | |
2010-04-12 | Fix file descriptor leakage when closing PPP recording | Marcel Holtmann | 1 | -1/+3 | |
2010-04-09 | Move CRC-CCITT table and helper into separate file | Marcel Holtmann | 1 | -60/+5 | |
2010-04-08 | ppp: Fix make some functions const correct | Denis Kenzior | 1 | -1/+1 | |
2010-04-07 | ppp: Remove lcp_protocol_reject | Denis Kenzior | 1 | -1/+1 | |
Use pppcp_send_reject_protocol | |||||
2010-04-06 | ppp: Use auth->proto, not ppp->proto | Denis Kenzior | 1 | -2/+1 | |
Otherwise we move on to NCP stage prematurely | |||||
2010-04-06 | Fix: Allow setting of tx ACCM | Denis Kenzior | 1 | -3/+3 | |
Specification is explicit that ACCM defaults to ~0 | |||||
2010-04-06 | ppp: Implement receive ACCM | Denis Kenzior | 1 | -2/+8 | |
2010-04-05 | Make pppcp_event_type enum a private structure | Marcel Holtmann | 1 | -1/+1 | |
2010-04-03 | Move PPP constants where they are used | Marcel Holtmann | 1 | -1/+17 | |
2010-04-03 | Make GAtPPP fields really private | Marcel Holtmann | 1 | -0/+50 | |
2010-04-02 | Move frame NULL checks into the unstuffing function | Marcel Holtmann | 1 | -8/+5 | |
2010-04-02 | Also the default case should have a break statement | Marcel Holtmann | 1 | -1/+2 | |
2010-04-02 | Refactor: Get rid of packet handler registrations | Denis Kenzior | 1 | -30/+19 | |
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 | 1 | -0/+1 | |
2010-04-02 | ppp: use queue to transmit | Kristen Carlson Accardi | 1 | -43/+90 | |
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 | 1 | -3/+6 | |
2010-04-02 | ppp: fix event generation on close | Kristen Carlson Accardi | 1 | -3/+1 | |
Prevents too early transition to PPP_DEAD | |||||
2010-04-01 | Remove obfuscation for some of the event handling | Marcel Holtmann | 1 | -40/+13 | |
2010-04-01 | Move functions from ppp.c into gatppp.c | Marcel Holtmann | 1 | -0/+501 | |
2010-04-01 | Remove PPP event_queue handling and process events directly | Marcel Holtmann | 1 | -3/+0 | |
2010-04-01 | Remove PPP recv_queue handling and process frames directly | Marcel Holtmann | 1 | -1/+0 | |
2010-04-01 | Add support for recording PPP sessions in pppdump format | Marcel Holtmann | 1 | -1/+22 | |
2010-04-01 | Implement g_at_ppp_set_debug support | Marcel Holtmann | 1 | -3/+12 | |
2010-03-31 | Refactor: Use GAtDisconnectFunc for ppp disconnect | Denis Kenzior | 1 | -4/+6 | |
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 | 1 | -3/+6 | |
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-25 | separate memory cleanup from PPP shutdown | Kristen Carlson Accardi | 1 | -18/+7 | |
don't free memory at PPP shutdown, because we need to be able to send terminate traffic. Free memory when we have reached the PPP_DEAD phase instead. | |||||
2010-03-22 | IP support for PPP | Kristen Carlson Accardi | 1 | -0/+1 | |
Adds IPCP support, and creates a TUN interface for sending/receiving IP packets. |