summaryrefslogtreecommitdiffstats
path: root/gatchat
AgeCommit message (Collapse)AuthorFilesLines
2010-03-24Fix: Make CONNECT <baud> responses workDenis Kenzior1-1/+1
2010-03-24Refactor: Simplify parsing logicDenis Kenzior1-14/+1
It isn't actually necessary to check the basic command prefixes, if the extended prefix doesn't match we try to parse it like a basic command. That one does the same exact check anyway. If that fails, then this is not a recognized command line anyway.
2010-03-24Refactor basic command parsingDenis Kenzior1-59/+46
Make more bullet proof and efficient
2010-03-24Fix: Use SO_REUSEADDR in test_serverDenis Kenzior1-0/+3
2010-03-24Style: foo[0] is preferable to *fooDenis Kenzior1-2/+2
2010-03-24Fix: Be more paranoid in basic command parsingDenis Kenzior1-6/+21
2010-03-24Add basic command parsingZhenhua Zhang1-1/+111
2010-03-24Style: No point to write a function to wrap g_freeDenis Kenzior1-10/+4
Using casting magic works well enough, and more consistent with the rest of the library.
2010-03-24fix memory leak in ppp_authKristen Carlson Accardi1-0/+1
Free packet after calling ppp_transmit()
2010-03-24fix memory leaks after ppp_transmitKristen Carlson Accardi1-9/+27
Free packets in ppp_cp after calling ppp_transmit()
2010-03-24fix memory leaks in option handlingKristen Carlson Accardi1-1/+14
free the data as well as the link when deleting options lists.
2010-03-22Remove pointless optimization attempt with g_list_length()Marcel Holtmann1-8/+1
2010-03-22Use password instead of passwd as variable nameMarcel Holtmann2-5/+5
2010-03-22The g_free() function checks for NULL pointersMarcel Holtmann1-5/+3
And so does even the free() function from glibc ;)
2010-03-22Unnest some more functions in PPP CP implementationMarcel Holtmann1-19/+20
2010-03-22Some additional whitespace cleanup for PPP codeMarcel Holtmann5-11/+15
2010-03-22Fix the broken PPP CP debug trace functionMarcel Holtmann1-5/+6
2010-03-22Remove some heavy nesting that is not needed at allMarcel Holtmann1-15/+15
2010-03-22Fix another pointer casting issue on 32-bit systemsMarcel Holtmann1-9/+11
2010-03-22Fix pointer casting with uint16 protocol variableMarcel Holtmann1-5/+4
2010-03-22Add PPP option to gsmdialKristen Carlson Accardi1-3/+84
Implement new options for gsmdial to use PPP and set the user name and password for authentication if needed.
2010-03-22IP support for PPPKristen Carlson Accardi4-0/+370
Adds IPCP support, and creates a TUN interface for sending/receiving IP packets.
2010-03-22CHAP with MD5 authentication supportKristen Carlson Accardi5-1/+257
Authentication support with CHAP and MD5
2010-03-22PPP LCP supportKristen Carlson Accardi4-1/+305
Implement LCP support for the PPP protocol.
2010-03-22Generic PPP control protocol supportKristen Carlson Accardi3-0/+1644
Implement a generic protocol that can be shared by both the LCP and the NCP implementation.
2010-03-22Basic PPP protocol supportKristen Carlson Accardi4-0/+775
This patch implements the basic PPP protocol. LCP, NCP etc. are handled in a different patch.
2010-03-22Fix: extract line should use S3, not hardcode CRDenis Kenzior1-3/+4
2010-03-22Refactor: Command line extractionDenis Kenzior1-4/+10
2010-03-22Refactor: Extended command parsingDenis Kenzior2-118/+96
Make the code more bullet proof and easier to follow
2010-03-22Add G_AT_SERVER_RESULT_EXT_ERRORZhenhua Zhang1-0/+1
2010-03-22Add g_at_server_register and unregister callbackZhenhua Zhang2-0/+54
2010-03-22Add notify at command callbackZhenhua Zhang1-0/+48
2010-03-22Add server at command data structureZhenhua Zhang2-0/+49
2010-03-22Add extended command parsingZhenhua Zhang1-2/+69
2010-03-22Add framework of server parserZhenhua Zhang1-20/+26
a. The parser fetch and parse one command per loop. The prefix is the command prefix without parameter. For example, the prefix of "AT+CLIP=1" is "+CLIP". b. Search registered notification node in command_list. Invoke the callback if found. c. Termiate the execution if the result is an error. Otherwise, parse next command.
2010-03-18Add support for IP based connections to gsmdialDenis Kenzior1-1/+51
2010-03-18Fix: Echo everything as soon as receivedDenis Kenzior1-4/+5
2010-03-18Refactor add is_basic_command_prefix functionZhenhua Zhang1-2/+13
2010-03-18Rename parse_v250_settingsZhenhua Zhang1-2/+2
To parse_basic_command
2010-03-18Rename parse_at_commandZhenhua Zhang1-2/+2
To parse_extended_command
2010-03-18Rename is_at_command_prefixZhenhua Zhang1-2/+2
To is_extended_command_prefix
2010-03-18Rename g_at_server_send_resultZhenhua Zhang1-8/+8
To g_at_server_send_final
2010-03-16Fix: Use g_try_malloc in gatutilDenis Kenzior1-1/+4
2010-03-03Fix: Use the proper enum typeDenis Kenzior1-1/+1
2010-03-03Add command echo back if ATE=1Zhenhua Zhang1-0/+3
2010-02-26Fix: Simplify write-again logicDenis Kenzior1-6/+3
2010-02-26Fix: Don't allocate buffers if we don't need toDenis Kenzior1-1/+6
2010-02-26Add write server response into non-blocking IOZhenhua Zhang1-0/+66
Write server response into non-blocking GIOChannel when we have G_IO_OUT signal.
2010-02-26Add write buffer queue for non-blocking writeZhenhua Zhang1-10/+95
The head of the queue is the data to be written, the tail is the free buffer to cache data into. If the tail of queue is full, allocate a new free buffer and append it at the tail.
2010-02-26Add define for read and write buffer sizeZhenhua Zhang1-1/+3