Kristen Carlson Accardi
9905245e79
ppp: implement Max-Failure counter
...
put a cap on the number of Configure-Nak packets we send.
2010-04-05 09:45:14 -05:00
Marcel Holtmann
c2fb0a1630
Move PPP constants where they are used
2010-04-03 22:32:27 -07:00
Marcel Holtmann
5772ad5d8b
Make GAtPPP fields really private
2010-04-03 22:25:09 -07:00
Marcel Holtmann
352ea97f8f
Hide internals of ring buffer structure
2010-04-02 21:51:19 -07:00
Marcel Holtmann
09f7be82a9
Remove circular inclusion protection from ring buffer header
2010-04-02 20:34:25 -07:00
Marcel Holtmann
764501482e
Fix some cases where g_try_new should be used
2010-04-02 19:20:53 -07:00
Marcel Holtmann
4733ddaffa
Move frame NULL checks into the unstuffing function
2010-04-02 19:06:31 -07:00
Marcel Holtmann
9d8e55d489
Fix coding style with callback structures
2010-04-02 19:01:38 -07:00
Kristen Carlson Accardi
3c3077f847
ppp: implement net close
2010-04-02 19:03:56 -05:00
Denis Kenzior
ebc6e3b9dc
Refactor: Get rid of (now) pointless comments
2010-04-02 19:03:56 -05:00
Marcel Holtmann
ffa99a1ebb
Also the default case should have a break statement
2010-04-02 13:48:44 -07:00
Denis Kenzior
349d4d8c5d
Remove the PPP option from gsmdial
...
Pointless since we should always connect using PPP
2010-04-02 15:13:25 -05:00
Denis Kenzior
2c466c8baf
Refactor: Get rid of packet handler registrations
...
There are only about 4 protocols that the current ppp code handles and
it is doubtful that it will grow much more. There's no point in having
an extensive packet handler registration framework.
2010-04-02 15:11:48 -05:00
Marcel Holtmann
3c39543cd6
Fix tabs vs. whitespace coding style violation
2010-04-02 13:34:10 -07:00
Marcel Holtmann
76200165bb
Add more missing break statements
2010-04-02 13:33:35 -07:00
Kristen Carlson Accardi
0766a67832
ppp: fix missing breaks in switch statements
2010-04-02 13:19:14 -07:00
Marcel Holtmann
8097a1ed52
Add missing break or fall through comments to switch statements
2010-04-02 12:40:45 -07:00
Marcel Holtmann
0e8b2815a8
Always reset option_rval for every option
2010-04-02 11:43:20 -07:00
Marcel Holtmann
843d3bd2a3
Add missing arpa/inet.h includes
2010-04-02 11:42:42 -07:00
Kristen Carlson Accardi
74e1abd353
ppp: use queue to transmit
...
Since we are using non buffered I/O, use a queue to transmit when buffer
space is available.
2010-04-02 13:05:47 -05:00
Denis Kenzior
1ed6966cb4
Split out ipcp protocol into ppp_ipcp.c
2010-04-02 12:53:45 -05:00
Kristen Carlson Accardi
c2a589e732
ppp: fix event generation on close
...
Prevents too early transition to PPP_DEAD
2010-04-02 12:53:45 -05:00
Denis Kenzior
398acbc976
Fix: Make the C-APDU logic more readable
2010-04-02 11:28:02 -05:00
Denis Kenzior
c2d46ba4eb
Style: Multiline comments
2010-04-02 11:20:44 -05:00
Denis Kenzior
5665cefd47
Fix: Tweak the language parser
2010-04-02 11:19:03 -05:00
Denis Kenzior
af3af57696
Fix: Remove erroneous comment
2010-04-02 11:11:53 -05:00
Denis Kenzior
30c07824ed
Fix: AT Commands are probably just text
2010-04-02 11:11:13 -05:00
Denis Kenzior
6fb687b996
Fix: Trivial indentation issues
2010-04-02 11:08:41 -05:00
Yang Gu
46f5f65214
Add parser for browser identity objects
2010-04-02 11:05:42 -05:00
Yang Gu
f5c0041240
Add parser for language objects
2010-04-02 11:05:17 -05:00
Yang Gu
fa846bd4a4
Add parser for dtmf string objects
2010-04-02 11:04:44 -05:00
Yang Gu
2490058b08
Add parser for bc repeat indicator objects
2010-04-02 11:03:07 -05:00
Yang Gu
0958247c3f
Add parser for at response objects
2010-04-02 11:02:53 -05:00
Yang Gu
94b4c25517
Add parser for at command objects
2010-04-02 11:02:42 -05:00
Yang Gu
1ae1fc8778
Add parser for date-time and time zone objects
2010-04-02 11:01:56 -05:00
Yang Gu
b20e0d2bf5
Make function decode_scts public
2010-04-02 11:00:56 -05:00
Yang Gu
5b7de64aca
Add parser for timer value objects
2010-04-02 10:59:45 -05:00
Yang Gu
8bc04ba93a
Refactor: Break out semi-octet decoder
...
Refactor decode_scts to use this function
2010-04-02 10:58:53 -05:00
Yang Gu
8bad7e540a
Add parser for timer identifier objects
2010-04-02 10:56:15 -05:00
Yang Gu
5f9f4fedee
Add parser for r-apdu objects
2010-04-02 10:55:55 -05:00
Yang Gu
afc2cb84e3
Add parser for c-apdu objects
2010-04-02 10:54:47 -05:00
Yang Gu
8e91f477f9
Add parser for card atr objects
2010-04-02 10:47:37 -05:00
Yang Gu
eef57d221c
Add parser for card reader status objects
2010-04-02 10:46:23 -05:00
Denis Kenzior
0aebcb342c
Fix: Regression in PIN validity checking
2010-04-02 09:17:34 -05:00
Marcel Holtmann
edba0296c5
Remove PPP CP event_queue handling and process events directly
2010-04-01 21:44:07 -07:00
Denis Kenzior
a182034336
Fix: Stop infinite attempts to register
...
Sometimes if the modem firmware is particularly nutty we will see
frequent cell-reselections at startup, resulting in us attempting to
register multiple times. Try to stop this behavior by keeping track of
what state we're in and hoping the hardware is at least somewhat sane.
2010-04-01 22:32:58 -05:00
Denis Kenzior
aadc1d884d
Add support for Option iCon 452
2010-04-01 22:32:58 -05:00
Marcel Holtmann
a845dc8da7
Remove obfuscation for some of the event handling
2010-04-01 20:40:39 -07:00
Marcel Holtmann
6607b5985e
Move functions from ppp.c into gatppp.c
2010-04-01 20:33:03 -07:00
Marcel Holtmann
7d6649680f
Remove PPP event_queue handling and process events directly
2010-04-01 20:26:24 -07:00