Commit Graph

615 Commits

Author SHA1 Message Date
Denis Kenzior bce5d9579c gatchat: Introduce g_at_chat_get_userdata 2015-05-13 09:57:52 -05:00
Denis Kenzior 8edaaaf210 gatchat: Fix up minor coding style issues 2014-06-21 11:54:26 -05:00
Philip Paeps a88662d23c gatchat: implement PAP authentication
Make the authentication method configurable, CHAP or PAP, defaulting to
CHAP (i.e.: previous behaviour).

Implementation details:

 o If PAP is configured, we NAK the CHAP authentication protocol option
   in LCP configuration requests and suggest PAP instead.  This works
   around the amusing requirement of 3GPP TS 29.061 that modems must
   send a forced positive acknowledgement of the authentication method
   tried (i.e.: the modem will successfully accept any CHAP handshake,
   but if the network only supports PAP, the modem will hang up
   when it tries and fails to activate the PDP context)

 o The PAP Authenticate-Request is resent a hard-coded three times at
   ten-second intervals.  This may be a bit too persistent.  Chances
   are if it doesn't work the first time, it'll never work, but the
   RFC insists that we MUST retry.
2014-06-21 11:50:34 -05:00
Marcel Holtmann f83233d295 gatchat: Fix handling of WRITE_SCHEDULER_DEBUG 2014-01-19 16:48:04 -08:00
Daniel Wagner ef7a4bc3a7 gatchat: Print error message if opening tun failes
This is a very common mistake. Let's help the users to
configure their system correctly.
2012-08-30 17:06:09 -05:00
Marcel Holtmann c49c3314d1 gatchat: Avoid shadowing global AT server variable 2012-07-15 20:14:12 -03:00
Marcel Holtmann 17828ce9c9 gatchat: Avoid shadowing variables 2012-07-15 20:14:12 -03:00
Guillaume Zajac 2bf8bb9d45 gatserver: Add NULL check to avoid crash
Dundee is not waiting to receive the NO CARRIER notification
to close the IO channel with oFono so that oFono is trying to
send a NO CARRIER although GAtServer is removed.
2012-06-24 17:40:59 -05:00
Marcel Holtmann 359f790c77 gatsyntax: Fix typo with GSM_PERMISSIVE_STATE_RESPONSE_STRING 2012-05-25 20:48:22 +02:00
Denis Kenzior 6cbcfb66b8 gatsyntax: Handle lines starting with '"' 2012-05-24 09:28:31 -05:00
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