summaryrefslogtreecommitdiffstats
path: root/gatchat
AgeCommit message (Collapse)AuthorFilesLines
2011-01-20gatchat: improve large file downlink data transferCarlos Pargada1-2/+2
Fix large file downlink data transfer on IFX modem. Increase buffer size of ring buffer to support close received Packets from the modem. Set highest priority for write data on IO device
2011-01-20gatchat: The IO setup already ensures no encoding and no bufferingMarcel Holtmann1-3/+0
2011-01-20gatchat: Small cleanup to make function look simplerMarcel Holtmann1-3/+2
2011-01-19gatchat: Disable encoding for RawIP GIOChannelMarcel Holtmann1-0/+1
2011-01-19gatchat: Fix setup of GIOChannel from multiplexer DLCMarcel Holtmann1-0/+4
2011-01-18gatchat: Turn off buffering of GAtChat IO channelsDenis Kenzior1-0/+2
After commit d83da353702c8533c36e06ead14aaec5ba900cf4 this was causing the command queue to never run.
2011-01-18gatserver: ATS6 command handler addedOlivier Guiter1-0/+10
2011-01-18gatchat: Use g_io_channel_read_chars and g_io_channel_write_charsMarcel Holtmann1-7/+9
2011-01-12gatchat: M15 coding styles fixesJeevaka Badrappan4-8/+8
2010-12-07gatchat: fix canceling in progress commandsVinicius Costa Gomes1-1/+1
As g_queue_peek_head() returns the node data field, we have to compare it against the actual command, not against the pointer to the queue node.
2010-11-29gatchat: explicitly compare pointers to NULLLucas De Marchi16-102/+98
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-23gatchat: remove write watcher on a disconnectDenis Kenzior1-0/+3
There's a small probability that we call chat_wakeup_writer just before the channel disonnects. When this happens the write watcher still fires causing a potential crash.
2010-10-26gatchat: A full support for TUN/TAP pipe and GAtRawIPMarcel Holtmann1-2/+137
2010-10-26gatchat: Remove unused write_watch variable of GAtHDLCMarcel Holtmann1-1/+0
2010-10-21gatchat: Fix missing return value for g_at_chat_set_slaveMarcel Holtmann1-1/+1
2010-10-21gatchat: Add skeleton for GAtRawIP moduleMarcel Holtmann2-0/+180
This adds the basic skeleton for a GAtRawIP support. It is only the skeleton with its intended API. It has no raw IP support yet.
2010-10-21gatchat: Add support for slave chat instancesMarcel Holtmann2-0/+34
This adds support to assign a slave chat instance to an existing chat instance. The slave chat is now additionally bound by the lifetime of its master chat instance. In case the master is cloned, the slave chat instance will also be cloned as well. With this it is possible to suspend the master while still have an active slave for notifications or extra commands.
2010-10-21ppp: Fix some coding style and memory leaksMarcel Holtmann1-16/+16
2010-10-19gatchat: Add support for skipping AT+CMUX speed parameterMarcel Holtmann1-8/+17
2010-10-14gatchat: Fix calling unregister from callbacksDenis Kenzior1-2/+40
This fixes the issues with SIM hotswap on infineon
2010-10-14gatchat: break out the remove_if logicDenis Kenzior1-46/+64
And make unregister_group use the new function
2010-10-14gatchat: quit early if the group id doesn't matchDenis Kenzior1-1/+1
If the ID of the notify matches but the group id does not match it means that the unregister is being called with an id that does not belong to that particular group. Checking further entries is no longer necessary.
2010-09-29gatsyntax: Fix responses starting with a quoteDenis Kenzior1-0/+2
2010-09-26gatchat: Hook up g_at_mux_set_debug to print debug messages for realMarcel Holtmann1-19/+32
2010-09-14Fix common misspellings in gatchatLucas De Marchi3-3/+3
Fix common misspellings by using the list available at http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines From the list cited above, the substitution script found the following misspellings: priviledge->privilege succeded->succeeded
2010-08-16gatchat: Skip string contents in extract_lineDenis Kenzior1-2/+7
2010-08-16gatchat: Handle embedded \r and \n in responsesDenis Kenzior1-1/+17
2010-08-16gatutil: Handle non-printable charactersDenis Kenzior1-1/+1
Signed arithmetic and shifts do not work well...
2010-08-12gatchat: Add g_at_chat_cloneDenis Kenzior2-0/+21
This function will clone a chat object, but will create a new group internally.
2010-08-12gatchat: Make GAtChat a facade for struct at_chatDenis Kenzior1-228/+401
Each GAtChat object is now simply a representation of a set of outstanding commands and registered unsolicited notification handlers. This makes it easy to cancel entire groups, e.g. by canceling the GAtChat object itself rather than forcing the user into tracking all relevant g_at_chat_register and g_at_chat_send ids.
2010-07-09ppp: Add MAX_IPCP_FAILURE to avoid timeout quicklyZhenhua Zhang4-5/+17
We use IPCP NAK response to stall the progress of acquiring the client IP address from DHCP server. So we need to increase the max failure of NAKs in IPCP handshaking.
2010-07-07gatppp: Unset disconnect function when unref PPPZhenhua Zhang1-0/+3
Unset IO disconnect function when we try to destroy GAtPPP instance. After freeing the instance, the IO disconnect function should not be invoked.
2010-07-07gatserver: Restore GAtServer disconnect handlingZhenhua Zhang1-0/+2
Restore GAtServer disconnect handling when resuming a server session
2010-07-06test-server: Refactor set_raw_modeZhenhua Zhang1-5/+5
Rename variable 'options' to 'ti' and use sizeof(ti).
2010-07-06gatserver: Don't free twice after user disconnectZhenhua Zhang1-3/+0
It's possible to free gatserver in user disconnect function. So we should not free it again.
2010-07-06test-server: Use cfmakeraw to set TTY raw modeZhenhua Zhang1-5/+3
Use cfmakeraw to disable echoing and special characters processing. If we don't turn off ICRNL, TTY layer translates \r\n to \n\n.
2010-07-06gatppp: Check ppp instance before unref itZhenhua Zhang1-0/+3
2010-06-29gsmdial: Wait for a no carrier before sending CFUNDenis Kenzior1-3/+9
2010-06-29test-server: Send a NO_CARRIER when ppp is doneDenis Kenzior1-2/+4
2010-06-29test-server: Update to the new APIDenis Kenzior1-4/+1
2010-06-29ppp: Don't accept 0 ip-addr/dns1/dns2Denis Kenzior1-3/+4
2010-06-29ppp: Refactor server-side APIDenis Kenzior7-16/+77
The biggest update here is that the server needs to be in dormant mode by default, so as not to send a Configure-Req to the peer until the peer is ready. This requires adding special constructor for LCP to initialize it to Stopped state instead of initial state. Along with this, we pass the server local IP directly to the ppp server constructor.
2010-06-29test-server: Update to the new APIDenis Kenzior1-1/+1
2010-06-29ppp: Tweak set_server_info API some moreDenis Kenzior4-16/+5
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-28gsmdial: Configure network interface for PPPZhenhua Zhang1-0/+29
2010-06-28test-server: Configure network interfaceZhenhua Zhang1-0/+31
Require ROOT priviledge to: 1. Run external command to configure and bring up network interface. 2. Enable kernel IP forwarding.
2010-06-28ppp: Tweak the set_server_info APIDenis Kenzior3-17/+20
2010-06-28test-server: Add PPP server supportZhenhua Zhang1-0/+119
So that gsmdial and wvdial could talk to test-server and establish PPP connection.