Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-07-07 | gatppp: Unset disconnect function when unref PPP | Zhenhua Zhang | 1 | -0/+3 | |
Unset IO disconnect function when we try to destroy GAtPPP instance. After freeing the instance, the IO disconnect function should not be invoked. | |||||
2010-07-06 | gatppp: Check ppp instance before unref it | Zhenhua Zhang | 1 | -0/+3 | |
2010-06-29 | ppp: Refactor server-side API | Denis Kenzior | 1 | -5/+50 | |
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-29 | ppp: Tweak set_server_info API some more | Denis Kenzior | 1 | -5/+2 | |
2010-06-28 | ppp: Tweak the set_server_info API | Denis Kenzior | 1 | -3/+14 | |
2010-06-28 | gatppp: Add PPP server extension | Zhenhua Zhang | 1 | -2/+9 | |
1. Add interface to set PPP server info by g_at_ppp_set_server_info. 2. Pass local and peer address through IPCP handshaking. | |||||
2010-06-11 | gatppp: whitespace issues | Denis Kenzior | 1 | -2/+2 | |
2010-06-11 | gatppp: Unref HDLC when unrefing PPP | Denis Kenzior | 1 | -0/+2 | |
2010-05-19 | ppp: implement ppp_packet_new | Kristen Carlson Accardi | 1 | -0/+15 | |
2010-05-10 | ppp: Keep these defines private | Denis Kenzior | 1 | -0/+3 | |
2010-05-10 | ppp: set address and control field | Kristen Carlson Accardi | 1 | -2/+7 | |
Before sending to hdlc, set the address and control field. Fix hardcode of ppp header size. | |||||
2010-05-10 | ppp: transition to dead when lcp finished | Kristen Carlson Accardi | 1 | -1/+4 | |
Transition to DEAD when lcp is finished and ignore any io disconnects if we are already dead. | |||||
2010-04-30 | ppp: Refactor connect / disconnect callbacks | Denis Kenzior | 1 | -12/+20 | |
Right now it is very hard to figure out whether we should be calling the connect callback or the disconnect callback. So refactor as follows: - Connect callback is only called once the net is actually up - Disconnect callback is called once ppp is down, with a reason for why it is so. | |||||
2010-04-30 | ppp: get rid of ppp_enter_phase | Denis Kenzior | 1 | -41/+73 | |
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-30 | ppp: Add _from_io constructor | Denis Kenzior | 1 | -7/+32 | |
2010-04-29 | ppp: fix return of drop_packet for NETWORK phase | Kristen Carlson Accardi | 1 | -1/+1 | |
2010-04-29 | ppp: silently drop invalid packets | Kristen Carlson Accardi | 1 | -8/+28 | |
2010-04-29 | ppp: transition to dead when read io destroyed | Kristen Carlson Accardi | 1 | -1/+1 | |
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: Hang set_recording off the GAtPPP object | Denis Kenzior | 1 | -3/+3 | |
Marcel: recording right now only works for PPP, so we'd need some sort of multi-protocol support. So for now expose set_recording to be used through the main PPP object. HDLC object recording support needs to be extended. | |||||
2010-04-28 | ppp: Re-add capability to detect io down events | Denis Kenzior | 1 | -0/+9 | |
2010-04-28 | ppp: Don't crash if the interface wasn't created | Denis Kenzior | 1 | -0/+4 | |
2010-04-28 | ppp: Add getter for HDLC object | Denis Kenzior | 1 | -0/+8 | |
2010-04-28 | ppp: Initial port of PPP to use GAtHDLC | Denis Kenzior | 1 | -359/+41 | |
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 |