Marcel Holtmann
21f9da9916
gatchat: Update copyright information
2011-10-10 13:39:25 -07:00
Marcel Holtmann
e266a5e220
gatchat: Fix marker handling within HDLC support
2011-08-09 20:00:58 -07:00
Marcel Holtmann
e35a577f80
gatchat: Use hexdump format for HDLC debug messages
2011-08-09 19:18:14 -07:00
Marcel Holtmann
5fea0c006a
gatchat: Add support for sending HDLC frame start and end markers
2011-08-09 16:50:30 -07:00
Marcel Holtmann
a58f01316b
gatchat: Fix handling of HDLC debug output
2011-07-26 15:53:06 +02:00
Marcel Holtmann
3297a3e865
gatchat: Fix unused variable cases
2011-05-27 09:52:31 -07:00
Denis Kenzior
afce582246
gathdlc: Fix memory leak
2011-05-25 05:30:17 -05:00
Denis Kenzior
6f6a9747f8
gathdlc: Squash unneeded function
2011-05-24 12:25:07 -05:00
Guillaume Zajac
ce71d75675
gathdlc: add g_at_hdlc_resume() API
2011-05-24 12:25:07 -05:00
Guillaume Zajac
badd5555ec
gathdlc: delete read/write handler in hdlc_suspend
2011-05-08 22:59:03 -05:00
Guillaume Zajac
8a56acd549
gathdlc: Add public suspend function
2011-05-08 22:58:41 -05:00
Denis Kenzior
dc86e86446
gathdlc: Make sure to set in_read_handler properly
2011-05-02 07:15:41 -05:00
Denis Kenzior
94d6d505ee
gathdlc: Add support for detecting +++ escapes
2011-05-02 07:06:28 -05:00
Patrick Porlan
bb0e3e0a58
PPP: Optimize write buffer management
...
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-03-15 14:15:26 -05:00
Denis Kenzior
0dc8e5e588
gathdlc: Try to detect no carrier conditions
...
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-28 16:13:56 -06:00
Denis Kenzior
09ca5aaef0
gathdlc: Unregister read / write handlers
...
When GAtHDLC is being unregistered make sure to unregister read / write
handlers so as not to crash.
2011-02-28 16:13:56 -06:00
Denis Kenzior
1cbe91090d
gathdlc: drain the last hdlc frame processed
...
If we're being destroyed, we should drain the last HDLC frame
2011-02-28 16:13:56 -06:00
Lucas De Marchi
521071a785
gatchat: explicitly compare pointers to NULL
...
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-11-29 12:05:29 -06:00
Marcel Holtmann
a34a8840c9
gatchat: Remove unused write_watch variable of GAtHDLC
2010-10-26 15:16:35 +02:00
Denis Kenzior
295270b4be
hdlc: Stop recording packets to stdout (fd = 0)
2010-06-29 11:46:40 -05:00
Denis Kenzior
aca0fdf87f
hdlc: Don't bother recording empty packets
2010-06-29 11:46:20 -05:00
Denis Kenzior
ab76f57cf9
gathdlc: Don't crash if unreffed in callback
2010-06-18 12:23:10 -05:00
Denis Kenzior
75e6a4707b
gathdlc: Free the main HDLC structure on unref
2010-06-11 09:20:05 -05:00
Denis Kenzior
95e0a15010
gathdlc: Add from_io constructor
2010-04-29 18:49:16 -05:00
Denis Kenzior
378f3c61e3
gathdlc: Add accessor for GAtIO
2010-04-28 17:27:36 -05:00
Denis Kenzior
3b98ed067a
gathdlc: Port GAtHDLC to use GAtIO
2010-04-28 17:27:36 -05:00
Denis Kenzior
5acb633a1d
gathdlc: Add recording support, ported from PPP
...
For protocol examination using wireshark
2010-04-28 17:27:35 -05:00
Denis Kenzior
41ce6212a1
gathdlc: Add receive ACCM support
2010-04-28 17:27:35 -05:00
Denis Kenzior
7c6c72f558
gathdlc: Support transmit ACCM
2010-04-28 17:27:35 -05:00
Marcel Holtmann
cc1975270c
Fix broken HDLC flag handling
2010-04-24 19:12:30 +02:00
Marcel Holtmann
057bd9f0b3
Fix wrong escape character check in HDLC transmit
2010-04-24 19:02:04 +02:00
Marcel Holtmann
46839fbd15
Allow real wrapping around of HDLC transmit ring buffer
2010-04-24 19:00:54 +02:00
Marcel Holtmann
8f05535bb2
Add offset parameter to ring_buffer_write_ptr() function
2010-04-24 18:59:44 +02:00
Marcel Holtmann
9fd7d841c8
Add support for wrapping of HDLC transmit ring buffer
2010-04-24 18:54:34 +02:00
Marcel Holtmann
d2c8f124e6
Use HDLC_FCS helper where possible
2010-04-23 17:22:56 +02:00
Marcel Holtmann
2a609f9054
Use HDLC constants instead of magic numbers
2010-04-23 17:21:49 +02:00
Marcel Holtmann
a31870f542
Add support for wrapping of HDLC receive ring buffer
2010-04-23 17:18:30 +02:00
Marcel Holtmann
46e77907b3
Use a ring buffer for non-blocking HDLC output streams
2010-04-11 07:01:14 +02:00
Marcel Holtmann
20b394e72b
Add abstraction for HDLC stream handling
2010-04-10 15:11:46 +02:00