summaryrefslogtreecommitdiffstats
path: root/gatchat
AgeCommit message (Collapse)AuthorFilesLines
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
2010-04-28gatchat: Channel is now setup by GAtIODenis Kenzior1-2/+0
2010-04-28gatchat: Better re-entrancy handlingDenis Kenzior1-6/+13
2010-04-28gsmdial: Get rid of g_at_chat_shutdown usageDenis Kenzior1-9/+16
2010-04-28gsmdial: Unref the chat instead of using shutdownDenis Kenzior1-2/+2
2010-04-28gatmux: Unref the chat instead of using shutdownDenis Kenzior1-1/+2
2010-04-28gatchat: Only set debug on IO if we have itDenis Kenzior1-1/+2
2010-04-28gatchat: Replace shutdown by suspend/resumeDenis Kenzior2-13/+29
Shutdown was actually pointless and according to Marcel he only had it in mind for PPP useage.
2010-04-28gatchat: port gatchat to use gatioDenis Kenzior1-112/+41
2010-04-28gatio: Remove g_at_io_shutdownDenis Kenzior2-18/+13
2010-04-28gatio: Get re-entrancy correctDenis Kenzior1-3/+6
2010-04-28gatio: Style fix for gsource id comparisonsDenis Kenzior1-2/+2
2010-04-28gatio: Kill the reader when no more spaceDenis Kenzior1-0/+4
2010-04-28gatchat: Remove g_at_chat_set_syntaxDenis Kenzior2-14/+0
Never used and too unsafe in its current form
2010-04-28gatchat: Add initial GAtIO implementationDenis Kenzior2-0/+325
2010-04-26ppp: use default ACCM when sending LCP codes 1-7Kristen Carlson Accardi3-0/+20
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-26ppp: discard non-LCP packets in ESTABLISHMENT phaseKristen Carlson Accardi1-0/+7
2010-04-24Fix broken HDLC flag handlingMarcel Holtmann1-2/+13
2010-04-24Fix wrong escape character check in HDLC transmitMarcel Holtmann1-2/+2