summaryrefslogtreecommitdiffstats
path: root/gatchat
AgeCommit message (Collapse)AuthorFilesLines
2016-01-11gatchat: Add support for shutting down the serverDenis Kenzior1-0/+4
By sending SIGUSR1 we can initiate a soft server-shutdown.
2015-07-28ppp_net: Make static analysis tools happyDenis Kenzior1-1/+1
The kernel simply puts a null terminator at index 15 prior to ifr_name processing. So we do the same. Original report by: Sabas Rosales, Blanca E <blanca.e.sabas.rosales@intel.com> Buffer not null terminated (BUFFER_SIZE_WARNING) buffer_size_warning: Calling strncpy with a maximum size argument of 16 bytes on destination array ifr.ifr_ifrn.ifrn_name of size 16 bytes might leave the destination string unterminated. 67 strncpy(ifr.ifr_name, net->if_name, sizeof(ifr.ifr_name));
2015-07-07gatchat: Fix compiler warning with logical expressionMarcel Holtmann1-1/+1
CC gatchat/gatchat.o gatchat/gatchat.c: In function ‘have_line’: gatchat/gatchat.c:586:28: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses] if (!strncmp(str, "AT", 2) == TRUE) ^
2015-07-01build: make ofono build against muslSergey Alirzaev1-1/+1
ifdef away GNU libc extensions and use a POSIXly correct pointer type
2015-05-13gatchat: Introduce g_at_chat_get_userdataDenis Kenzior2-0/+33
2014-06-21gatchat: Fix up minor coding style issuesDenis Kenzior2-1/+7
2014-06-21gatchat: implement PAP authenticationPhilip Paeps5-21/+247
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-01-19gatchat: Fix handling of WRITE_SCHEDULER_DEBUGMarcel Holtmann1-3/+13
2012-08-30gatchat: Print error message if opening tun failesDaniel Wagner1-1/+5
This is a very common mistake. Let's help the users to configure their system correctly.
2012-07-15gatchat: Avoid shadowing global AT server variableMarcel Holtmann1-11/+11
2012-07-15gatchat: Avoid shadowing variablesMarcel Holtmann2-4/+4
2012-06-24gatserver: Add NULL check to avoid crashGuillaume Zajac1-0/+3
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-05-25gatsyntax: Fix typo with GSM_PERMISSIVE_STATE_RESPONSE_STRINGMarcel Holtmann1-1/+1
2012-05-24gatsyntax: Handle lines starting with '"'Denis Kenzior1-0/+3
2012-01-11gatutil: Use g_ascii_isprint instead of isprintDenis Kenzior1-3/+3
2012-01-02gsmdial: Set recording after ppp_openDenis Kenzior1-3/+3
2011-11-30gsmdial: Make sure to use '#' at the endDenis Kenzior1-1/+1
The bluetooth path got this part wrong
2011-11-14gatchat: Fix minor style issueDenis Kenzior1-1/+1
2011-11-07gatchat: Minor style fixupDenis Kenzior2-0/+2
2011-11-07gatchat: Remove erroneous break statementDenis Kenzior1-1/+0
2011-11-07gatchat: Add IPv6 Control ProtocolOleg Zhurakivskyy2-0/+385
2011-10-10gatchat: Update copyright informationMarcel Holtmann39-39/+39
2011-08-15gatserver: Add command finished callbacksDenis Kenzior2-8/+46
2011-08-14gatserver: Fix not processing after async errorDenis Kenzior1-0/+1
If we send an async error response, all future commands are ignored.
2011-08-14gatserver: Add sanity checkDenis Kenzior1-0/+2
2011-08-14gatserver: Fix not sending OK final responseDenis Kenzior1-8/+13
2011-08-14gatserver: Refactor IO codeDenis Kenzior1-25/+22
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-09gatchat: Fix marker handling within HDLC supportMarcel Holtmann1-3/+10
2011-08-09gatchat: Abort hexdump helper when no debug function is specifiedMarcel Holtmann1-0/+3
2011-08-09gatchat: Fix extra empty line issue with hexdump helperMarcel Holtmann1-1/+1
2011-08-09gatchat: Use hexdump format for HDLC debug messagesMarcel Holtmann1-4/+5
2011-08-09gatchat: Add utility function for hexdump debugsMarcel Holtmann2-1/+44
2011-08-09gatchat: Add support for sending HDLC frame start and end markersMarcel Holtmann2-6/+23
2011-08-04gatchat: Fix minor whitespace mistakeMarcel Holtmann1-1/+1
2011-07-26gatchat: Fix port settings and debugging for QCDM test toolMarcel Holtmann1-13/+4
2011-07-26gatchat: Add helper for opening QCDM portsMarcel Holtmann2-0/+35
2011-07-26gatchat: Fix handling of HDLC debug outputMarcel Holtmann1-12/+15
2011-07-25gatchat: Add terminator blacklistingDenis Kenzior2-1/+35
2011-07-11gatserver: fix certain bad behaviorDenis Kenzior1-1/+4
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-06-29ppp: Add basic length sanity checksDenis Kenzior6-13/+28
2011-06-29gsmdial: Add pfc & acfc options to gsmdialDenis Kenzior1-2/+8
2011-06-29ppp: Don't regenerate options when unchangedDenis Kenzior1-0/+8
2011-06-29gatppp: Refactor tx pathDenis Kenzior1-15/+11
2011-06-29gatppp: Refactor rx pathDenis Kenzior2-33/+32
2011-06-29gatppp: Re-format & re-word commentsDenis Kenzior1-6/+2
2011-06-29gsmdial: Use ACFC and PFC by defaultGuillaume Zajac1-0/+3
2011-06-29GAtPPP: Add PFC option supportGuillaume Zajac4-4/+99
2011-06-29GAtPPP: Add ACFC option supportGuillaume Zajac4-26/+115
2011-05-27gatchat: Fix unused variable casesMarcel Holtmann2-0/+17
2011-05-25gsmdial: Send escape sequence followed by ATH/ATODenis Kenzior1-0/+49
This functionality can be triggered by sending SIGUSR1 / SIGUSR2 to gsmdial. e.g. kill -10 <pid> and kill -12 <pid>