summaryrefslogtreecommitdiffstats
path: root/gatchat
AgeCommit message (Collapse)AuthorFilesLines
2010-06-28gatppp: Add PPP server extensionZhenhua Zhang4-36/+225
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-23ppp: Fix incorrect packet length for little-endianZhenhua Zhang1-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.
2010-06-21ppp: Fix leak in pppcp_send_protocol_rejectZhenhua Zhang1-0/+2
Free the reject pppcp packet after ppp_transmit.
2010-06-18gathdlc: Don't crash if unreffed in callbackDenis Kenzior1-1/+18
2010-06-17gsmdial: Unref ppp when we get disconnectedZhenhua Zhang1-0/+5
2010-06-17test-server: Fix GIOChannel leak in create_ttyZhenhua Zhang1-4/+2
Remove client_io and unref server_io after creating GAtServer.
2010-06-17gatserver: Check for disconnection when resumingZhenhua Zhang1-0/+5
If the internal GAtIO is no longer valid, treat it as if our channel was disconnected.
2010-06-17gatserver: Suspend/resume GAtServer with GAtIOZhenhua Zhang2-150/+114
Support g_at_server_suspend and g_at_server_resume operation by using GAtIO to handle IO related function.
2010-06-11gatppp: whitespace issuesDenis Kenzior1-2/+2
2010-06-11gatppp: Unref HDLC when unrefing PPPDenis Kenzior1-0/+2
2010-06-11gathdlc: Free the main HDLC structure on unrefDenis Kenzior1-0/+1
2010-06-07gatchat: Check for disconnection when resumingDenis Kenzior1-0/+5
If the internal GAtIO is no longer valid, treat it as if our channel was disconnected.
2010-06-07Restore GAtChat disconnect handling when resuming a chat sessionMarcel Holtmann1-0/+2
2010-05-19ppp: Trivial whitespace errorDenis Kenzior1-1/+1
2010-05-19ppp: implement ppp_packet_newKristen Carlson Accardi5-16/+35
2010-05-11ppp: fix another hardcode of ppp_packet sizeKristen Carlson Accardi1-1/+1
2010-05-10gsmdial: Shut down cleanly when ppp link diesDenis Kenzior1-2/+4
2010-05-10ppp: Keep these defines privateDenis Kenzior2-2/+3
2010-05-10ppp: set address and control fieldKristen Carlson Accardi5-8/+16
Before sending to hdlc, set the address and control field. Fix hardcode of ppp header size.
2010-05-10gsmdial: use g_at_ppp_new_from_io()Kristen Carlson Accardi1-3/+3
2010-05-10gatchat: implement g_at_chat_get_io()Kristen Carlson Accardi2-0/+10
2010-05-10gsmdial: use g_at_chat_suspendKristen Carlson Accardi1-4/+4
2010-05-10ppp: transition to dead when lcp finishedKristen Carlson Accardi1-1/+4
Transition to DEAD when lcp is finished and ignore any io disconnects if we are already dead.
2010-04-30gsmdial: Port to new PPP apiDenis Kenzior1-9/+3
2010-04-30ppp: Refactor connect / disconnect callbacksDenis Kenzior2-19/+33
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-30ppp: get rid of ppp_enter_phaseDenis Kenzior4-57/+85
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-30ppp: Add _from_io constructorDenis Kenzior2-8/+34
2010-04-29ppp: fix return of drop_packet for NETWORK phaseKristen Carlson Accardi1-1/+1
2010-04-29gathdlc: Add from_io constructorDenis Kenzior2-8/+20
2010-04-29ppp: silently drop invalid packetsKristen Carlson Accardi1-8/+28
2010-04-29ppp: transition to dead when read io destroyedKristen Carlson Accardi2-1/+3
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-28ppp: Hang set_recording off the GAtPPP objectDenis Kenzior3-5/+5
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-28ppp: Re-add capability to detect io down eventsDenis Kenzior1-0/+9
2010-04-28gathdlc: Add accessor for GAtIODenis Kenzior3-0/+13
2010-04-28gathdlc: Port GAtHDLC to use GAtIODenis Kenzior1-129/+24
2010-04-28ppp: Don't crash if the interface wasn't createdDenis Kenzior1-0/+4
2010-04-28ppp: Accept 1500 byte MTUsDenis Kenzior1-1/+1
2010-04-28gsmdial: Use set recording on the HDLC objectDenis Kenzior1-1/+1
2010-04-28ppp: Add getter for HDLC objectDenis Kenzior2-0/+11
2010-04-28ppp: Initial port of PPP to use GAtHDLCDenis Kenzior2-360/+41
2010-04-28ppp: Make pppcp functions const correctDenis Kenzior2-35/+29
2010-04-28ppp: Make ppp_chap_process_packet const correctDenis Kenzior2-4/+4
2010-04-28ppp: Make ppp_net_process_packet const correctDenis Kenzior2-2/+2
2010-04-28gathdlc: Add recording support, ported from PPPDenis Kenzior2-0/+60
For protocol examination using wireshark
2010-04-28gathdlc: Add receive ACCM supportDenis Kenzior2-1/+23
2010-04-28gathdlc: Support transmit ACCMDenis Kenzior2-2/+27
2010-04-28gatchat: Don't try to cleanup twiceDenis Kenzior1-11/+8
In case we get unrefed from the disconnect callback
2010-04-28gatchat: Use GAtIO for write watchersDenis Kenzior1-65/+21
2010-04-28gatio: support for blocking / nonblocking writesDenis Kenzior2-4/+105
2010-04-28gatchat: get_channel should return one from GAtIODenis Kenzior1-2/+2