Commit Graph

605 Commits

Author SHA1 Message Date
Denis Kenzior 22294e80f6 gatutil: Use g_ascii_isprint instead of isprint 2012-01-11 14:31:45 -06:00
Denis Kenzior 8863e7e99a gsmdial: Set recording after ppp_open 2012-01-02 10:57:27 -06:00
Denis Kenzior 3d312e631b gsmdial: Make sure to use '#' at the end
The bluetooth path got this part wrong
2011-11-30 04:35:44 -06:00
Denis Kenzior a1010dd727 gatchat: Fix minor style issue 2011-11-14 20:11:39 -06:00
Denis Kenzior e0e151e88c gatchat: Minor style fixup 2011-11-07 12:27:51 -06:00
Denis Kenzior 74b8d2aa28 gatchat: Remove erroneous break statement 2011-11-07 12:27:18 -06:00
Oleg Zhurakivskyy 82ac630693 gatchat: Add IPv6 Control Protocol 2011-11-07 12:24:30 -06:00
Marcel Holtmann 21f9da9916 gatchat: Update copyright information 2011-10-10 13:39:25 -07:00
Denis Kenzior 2867bf724d gatserver: Add command finished callbacks 2011-08-15 00:25:27 -05:00
Denis Kenzior 6240b76294 gatserver: Fix not processing after async error
If we send an async error response, all future commands are ignored.
2011-08-14 23:18:05 -05:00
Denis Kenzior 665b2ea99e gatserver: Add sanity check 2011-08-14 23:11:20 -05:00
Denis Kenzior a897ed5e53 gatserver: Fix not sending OK final response 2011-08-14 23:11:03 -05:00
Denis Kenzior 5bd2b86ace gatserver: Refactor IO code
The current GAtServer implementation had nasty corner cases where
multiple commands were issued on the same command line.  The
server_suspend had no effect and we ended up processing the second
command anyway, resulting in interesting side-effects or crashes.

This commit simply discards the rest of the read input if the server
starts processing a command.  Since we do not yet support command
abortion we also discard data that arrives when command is being
processed.
2011-08-14 22:56:45 -05:00
Marcel Holtmann e266a5e220 gatchat: Fix marker handling within HDLC support 2011-08-09 20:00:58 -07:00
Marcel Holtmann 4dc66b9cb0 gatchat: Abort hexdump helper when no debug function is specified 2011-08-09 20:00:18 -07:00
Marcel Holtmann 6351cb1e4e gatchat: Fix extra empty line issue with hexdump helper 2011-08-09 19:23:33 -07:00
Marcel Holtmann e35a577f80 gatchat: Use hexdump format for HDLC debug messages 2011-08-09 19:18:14 -07:00
Marcel Holtmann 4b76ec7159 gatchat: Add utility function for hexdump debugs 2011-08-09 19:17:52 -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 b996d34f2f gatchat: Fix minor whitespace mistake 2011-08-04 23:54:33 +02:00
Marcel Holtmann 73b711551c gatchat: Fix port settings and debugging for QCDM test tool 2011-07-26 16:02:24 +02:00
Marcel Holtmann 0f29c33c5b gatchat: Add helper for opening QCDM ports 2011-07-26 15:59:47 +02:00
Marcel Holtmann a58f01316b gatchat: Fix handling of HDLC debug output 2011-07-26 15:53:06 +02:00
Denis Kenzior 0471e3ec8d gatchat: Add terminator blacklisting 2011-07-25 03:44:56 +02:00
Denis Kenzior 329f2d724b gatserver: fix certain bad behavior
Due to the new GAtIO semantics, the receive function is called
immediately if the receive buffer is not empty.  This caused certain
funny behavior in non-command (e.g. empty, a/) processing.
2011-07-11 15:51:34 -05:00
Denis Kenzior 2eb4611de8 ppp: Add basic length sanity checks 2011-06-29 05:00:56 -05:00
Denis Kenzior e893deac59 gsmdial: Add pfc & acfc options to gsmdial 2011-06-29 04:03:57 -05:00
Denis Kenzior 078d621033 ppp: Don't regenerate options when unchanged 2011-06-29 04:03:25 -05:00
Denis Kenzior bc64df2d2a gatppp: Refactor tx path 2011-06-29 03:46:54 -05:00
Denis Kenzior bc37c74653 gatppp: Refactor rx path 2011-06-29 03:35:13 -05:00
Denis Kenzior 12338faabd gatppp: Re-format & re-word comments 2011-06-29 03:32:27 -05:00
Guillaume Zajac 3b2e579cf4 gsmdial: Use ACFC and PFC by default 2011-06-29 00:34:18 -05:00
Guillaume Zajac fed838f79f GAtPPP: Add PFC option support 2011-06-29 00:33:42 -05:00
Guillaume Zajac 84ccc874da GAtPPP: Add ACFC option support 2011-06-29 00:22:25 -05:00
Marcel Holtmann 3297a3e865 gatchat: Fix unused variable cases 2011-05-27 09:52:31 -07:00
Denis Kenzior bc52e40801 gsmdial: Send escape sequence followed by ATH/ATO
This functionality can be triggered by sending SIGUSR1 / SIGUSR2 to
gsmdial.  e.g. kill -10 <pid> and kill -12 <pid>
2011-05-25 05:32:05 -05:00
Denis Kenzior 92e0657eed ppp_net: Keep valgrind happy 2011-05-25 05:30:38 -05:00
Denis Kenzior afce582246 gathdlc: Fix memory leak 2011-05-25 05:30:17 -05:00
Denis Kenzior e244e2d42a gatppp: Set the suspend function in open / listen
In case it was set before calling these functions
2011-05-25 05:22:58 -05:00
Denis Kenzior 1bd4f75ac0 test-server: Update to the new GAtPPP API 2011-05-24 12:25:08 -05:00
Denis Kenzior 0c4a0e61b6 gsmdial: Update to new API 2011-05-24 12:25:07 -05:00
Denis Kenzior eeb3ccc321 gatppp: Refactor PPP API
Remove the series of constructors which take a GIOChannel directly.
These weren't used.

This change also allows the construction of the PPP object and filling
in various pertinent information without starting the HDLC processing.
The client must now use g_at_ppp_open() for the client side or
g_at_ppp_listen() for the server side to start the true PPP session.
The previous owner of the GAtIO object must be suspended beforehand.
2011-05-24 12:25:07 -05:00
Denis Kenzior 72dee45005 gatppp: Make sure to clean up guard_timeout_source 2011-05-24 12:25:07 -05:00
Denis Kenzior d82c5ce1fa gatppp: Rename guard_timeout_src to _source 2011-05-24 12:25:07 -05:00
Guillaume Zajac db430aaf1c gatppp: Do not call disconnect func if suspended 2011-05-24 12:25:07 -05:00
Guillaume Zajac ab027e9e9c gatppp: Add GAtPPP suspend API 2011-05-24 12:25:07 -05:00
Guillaume Zajac 7617c492b8 gatppp: Add GAtPPP resume functionality 2011-05-24 12:25:07 -05:00
Guillaume Zajac 47f5887c29 ppp_net: add ppp_net_resume_interface() API 2011-05-24 12:25:07 -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