summaryrefslogtreecommitdiffstats
path: root/gatchat
AgeCommit message (Collapse)AuthorFilesLines
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.
2010-06-28ppp: Refactor server RCR actionDenis Kenzior1-40/+40
We need to generate the Conf-Rej / Conf-Nak in the same order as the client sent us.
2010-06-28ppp: Refactor client RCR actionDenis Kenzior1-29/+27
2010-06-28ppp: Simplify the logic by re-using codeDenis Kenzior1-6/+1
2010-06-28ppp: Minor style tweaksDenis Kenzior1-9/+9
2010-06-28gsmdial: Update to the new APIZhenhua Zhang1-2/+3
2010-06-28gatppp: Add PPP server extensionZhenhua Zhang4-36/+225
1. Add interface to set PPP server info by g_at_ppp_set_server_info. 2. Pass local and peer address through IPCP handshaking.
2010-06-23ppp: Fix incorrect packet length for little-endianZhenhua Zhang1-1/+1
packet->length is in TCP/IP network byte order. It needs to call ntohs() to convert to host byte order, which is little-endian.
2010-06-21ppp: Fix leak in pppcp_send_protocol_rejectZhenhua Zhang1-0/+2
Free the reject pppcp packet after ppp_transmit.
2010-06-18gathdlc: Don't crash if unreffed in callbackDenis Kenzior1-1/+18
2010-06-17gsmdial: Unref ppp when we get disconnectedZhenhua Zhang1-0/+5
2010-06-17test-server: Fix GIOChannel leak in create_ttyZhenhua Zhang1-4/+2
Remove client_io and unref server_io after creating GAtServer.
2010-06-17gatserver: Check for disconnection when resumingZhenhua Zhang1-0/+5
If the internal GAtIO is no longer valid, treat it as if our channel was disconnected.
2010-06-17gatserver: Suspend/resume GAtServer with GAtIOZhenhua Zhang2-150/+114
Support g_at_server_suspend and g_at_server_resume operation by using GAtIO to handle IO related function.
2010-06-11gatppp: whitespace issuesDenis Kenzior1-2/+2
2010-06-11gatppp: Unref HDLC when unrefing PPPDenis Kenzior1-0/+2
2010-06-11gathdlc: Free the main HDLC structure on unrefDenis Kenzior1-0/+1
2010-06-07gatchat: Check for disconnection when resumingDenis Kenzior1-0/+5
If the internal GAtIO is no longer valid, treat it as if our channel was disconnected.
2010-06-07Restore GAtChat disconnect handling when resuming a chat sessionMarcel Holtmann1-0/+2
2010-05-19ppp: Trivial whitespace errorDenis Kenzior1-1/+1
2010-05-19ppp: implement ppp_packet_newKristen Carlson Accardi5-16/+35
2010-05-11ppp: fix another hardcode of ppp_packet sizeKristen Carlson Accardi1-1/+1
2010-05-10gsmdial: Shut down cleanly when ppp link diesDenis Kenzior1-2/+4
2010-05-10ppp: Keep these defines privateDenis Kenzior2-2/+3
2010-05-10ppp: set address and control fieldKristen Carlson Accardi5-8/+16
Before sending to hdlc, set the address and control field. Fix hardcode of ppp header size.
2010-05-10gsmdial: use g_at_ppp_new_from_io()Kristen Carlson Accardi1-3/+3