summaryrefslogtreecommitdiffstats
path: root/gatchat/gathdlc.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-10gatchat: Update copyright informationMarcel Holtmann1-1/+1
2011-08-09gatchat: Fix marker handling within HDLC supportMarcel Holtmann1-3/+10
2011-08-09gatchat: Use hexdump format for HDLC debug messagesMarcel Holtmann1-4/+5
2011-08-09gatchat: Add support for sending HDLC frame start and end markersMarcel Holtmann1-6/+22
2011-07-26gatchat: Fix handling of HDLC debug outputMarcel Holtmann1-12/+15
2011-05-27gatchat: Fix unused variable casesMarcel Holtmann1-0/+15
2011-05-25gathdlc: Fix memory leakDenis Kenzior1-0/+2
2011-05-24gathdlc: Squash unneeded functionDenis Kenzior1-6/+1
2011-05-24gathdlc: add g_at_hdlc_resume() APIGuillaume Zajac1-0/+16
2011-05-08gathdlc: delete read/write handler in hdlc_suspendGuillaume Zajac1-0/+3
2011-05-08gathdlc: Add public suspend functionGuillaume Zajac1-0/+9
2011-05-02gathdlc: Make sure to set in_read_handler properlyDenis Kenzior1-4/+4
2011-05-02gathdlc: Add support for detecting +++ escapesDenis Kenzior1-0/+107
2011-03-15PPP: Optimize write buffer managementPatrick Porlan1-22/+71
Extend the write buffer handling in gathdlc.c to minimize stalling and process switching during large PPP transfers. The single write buffer is replaced by a queue of buffers, allowing for much larger emission windows without hugely impacting memory consumption. This reduces the time required to send 50 MB between a couple of local PPP interfaces on my laptop from ~53s to ~3s.
2011-02-28gathdlc: Try to detect no carrier conditionsDenis Kenzior1-0/+19
Sometimes we receive the no carrier embedded in a stream following the PPP packets. This might be due to write scheduling on the remote side or read scheduling locally. Try not to consume the no carrier condition and assume the previous hdlc frames will result in closing of the ppp stack.
2011-02-28gathdlc: Unregister read / write handlersDenis Kenzior1-0/+3
When GAtHDLC is being unregistered make sure to unregister read / write handlers so as not to crash.
2011-02-28gathdlc: drain the last hdlc frame processedDenis Kenzior1-1/+1
If we're being destroyed, we should drain the last HDLC frame
2010-11-29gatchat: explicitly compare pointers to NULLLucas De Marchi1-4/+4
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-10-26gatchat: Remove unused write_watch variable of GAtHDLCMarcel Holtmann1-1/+0
2010-06-29hdlc: Stop recording packets to stdout (fd = 0)Denis Kenzior1-2/+2
2010-06-29hdlc: Don't bother recording empty packetsDenis Kenzior1-0/+3
2010-06-18gathdlc: Don't crash if unreffed in callbackDenis Kenzior1-1/+18
2010-06-11gathdlc: Free the main HDLC structure on unrefDenis Kenzior1-0/+1
2010-04-29gathdlc: Add from_io constructorDenis Kenzior1-8/+19
2010-04-28gathdlc: Add accessor for GAtIODenis Kenzior1-0/+8
2010-04-28gathdlc: Port GAtHDLC to use GAtIODenis Kenzior1-129/+24
2010-04-28gathdlc: Add recording support, ported from PPPDenis Kenzior1-0/+58
For protocol examination using wireshark
2010-04-28gathdlc: Add receive ACCM supportDenis Kenzior1-1/+20
2010-04-28gathdlc: Support transmit ACCMDenis Kenzior1-2/+24
2010-04-24Fix broken HDLC flag handlingMarcel Holtmann1-2/+13
2010-04-24Fix wrong escape character check in HDLC transmitMarcel Holtmann1-2/+2
2010-04-24Allow real wrapping around of HDLC transmit ring bufferMarcel Holtmann1-2/+2
2010-04-24Add offset parameter to ring_buffer_write_ptr() functionMarcel Holtmann1-2/+2
2010-04-24Add support for wrapping of HDLC transmit ring bufferMarcel Holtmann1-30/+57
2010-04-23Use HDLC_FCS helper where possibleMarcel Holtmann1-1/+1
2010-04-23Use HDLC constants instead of magic numbersMarcel Holtmann1-4/+4
2010-04-23Add support for wrapping of HDLC receive ring bufferMarcel Holtmann1-21/+34
2010-04-11Use a ring buffer for non-blocking HDLC output streamsMarcel Holtmann1-25/+93
2010-04-10Add abstraction for HDLC stream handlingMarcel Holtmann1-0/+282