Kristen Carlson Accardi
125fc62526
ppp: set address and control field
...
Before sending to hdlc, set the address and control field.
Fix hardcode of ppp header size.
2010-05-10 16:27:15 -05:00
Kristen Carlson Accardi
f13d5e2bad
gsmdial: use g_at_ppp_new_from_io()
2010-05-10 15:41:39 -05:00
Kristen Carlson Accardi
72c38f7adb
gatchat: implement g_at_chat_get_io()
2010-05-10 15:41:39 -05:00
Kristen Carlson Accardi
cb36130b13
gsmdial: use g_at_chat_suspend
2010-05-10 15:41:39 -05:00
Kristen Carlson Accardi
2d8a1462db
ppp: transition to dead when lcp finished
...
Transition to DEAD when lcp is finished and ignore any io
disconnects if we are already dead.
2010-05-10 15:29:44 -05:00
Andrzej Zaborowski
018ee10f92
Fix: Don't remove wrong atoms
...
When the state goes from INSERTED to NOT PRESENT and we have not
advanced past the SIM PIN entry, we remove the pre_sim atoms.
Similarly, if we advanced past the SIM PIN stage and subsequently
removed the SIM, the pre_sim atom list should not be tampered with.
2010-05-10 15:26:09 -05:00
Zhenhua Zhang
988750898e
Fix check data device before register the modem
...
To avoid the race condition that modem is registered before we retrieve
the data device property.
2010-05-10 15:26:09 -05:00
Torgny Johansson
4c483acbc6
add vid/pid for Dell 5541 and 5542
2010-05-04 11:08:46 +02:00
Denis Kenzior
5343272bc1
atmodem: Port gprs-context to new PPP api
2010-04-30 15:32:54 -05:00
Denis Kenzior
02c2cdaf21
gsmdial: Port to new PPP api
2010-04-30 15:32:45 -05:00
Denis Kenzior
6d20194e75
ppp: Refactor connect / disconnect callbacks
...
Right now it is very hard to figure out whether we should be calling the
connect callback or the disconnect callback. So refactor as follows:
- Connect callback is only called once the net is actually up
- Disconnect callback is called once ppp is down, with a reason
for why it is so.
2010-04-30 15:31:26 -05:00
Denis Kenzior
9ae0dcb47d
ppp: get rid of ppp_enter_phase
...
This function simply didn't have the context of why the phase was being
entered. Instead have each protocol notify GAtPPP as to what is
happening. We already had this more or less for IPCP and AUTH events,
this just now formalizes it for LCP as well.
2010-04-30 14:37:17 -05:00
Denis Kenzior
c7ef06f91e
ppp: Add _from_io constructor
2010-04-30 10:52:16 -05:00
Kristen Carlson Accardi
5ef90f934b
ppp: fix return of drop_packet for NETWORK phase
2010-04-29 18:49:16 -05:00
Denis Kenzior
95e0a15010
gathdlc: Add from_io constructor
2010-04-29 18:49:16 -05:00
Johan Hedberg
58b37ddb53
Fix parent path introspection data invalidation for multiple levels
...
In the case that parent path data needs to be invalidated we shouldn't
stop at the immediate parent if it doesn't have our own handler
registered but should continue upwards in the tree until we reach root
or our own handler.
2010-04-30 00:30:54 +02:00
Johan Hedberg
3f2494a7b0
Fix memory leak in g_dbus_register_interface
2010-04-29 23:46:12 +02:00
Kristen Carlson Accardi
7d59d7a377
ppp: silently drop invalid packets
2010-04-29 14:40:20 -05:00
Kristen Carlson Accardi
9d5eb5110f
ppp: transition to dead when read io destroyed
...
remove call to signal_close for lcp object, it is redundent. If
our io is destroyed we are dead, so transition the ppp phase to
DEAD so our disconnect callback can be called.
2010-04-29 14:24:47 -05:00
Denis Kenzior
c9edf56fc6
ppp: Hang set_recording off the GAtPPP object
...
Marcel: recording right now only works for PPP, so we'd need some sort
of multi-protocol support.
So for now expose set_recording to be used through the main PPP object.
HDLC object recording support needs to be extended.
2010-04-28 20:25:10 -05:00
Yang Gu
e42b7282f7
Add unit test for get inkey parser
2010-04-28 20:24:54 -05:00
Denis Kenzior
fb8ca665dd
ppp: Re-add capability to detect io down events
2010-04-28 17:27:36 -05:00
Denis Kenzior
378f3c61e3
gathdlc: Add accessor for GAtIO
2010-04-28 17:27:36 -05:00
Denis Kenzior
3b98ed067a
gathdlc: Port GAtHDLC to use GAtIO
2010-04-28 17:27:36 -05:00
Denis Kenzior
d271216112
ppp: Don't crash if the interface wasn't created
2010-04-28 17:27:36 -05:00
Denis Kenzior
db0b7c8a98
ppp: Accept 1500 byte MTUs
2010-04-28 17:27:36 -05:00
Denis Kenzior
7d5a3730d1
gsmdial: Use set recording on the HDLC object
2010-04-28 17:27:36 -05:00
Denis Kenzior
ed15727b98
ppp: Add getter for HDLC object
2010-04-28 17:27:36 -05:00
Denis Kenzior
4cdf49f0de
ppp: Initial port of PPP to use GAtHDLC
2010-04-28 17:27:35 -05:00
Denis Kenzior
fa8614cc78
ppp: Make pppcp functions const correct
2010-04-28 17:27:35 -05:00
Denis Kenzior
87340d64e2
ppp: Make ppp_chap_process_packet const correct
2010-04-28 17:27:35 -05:00
Denis Kenzior
955673573b
ppp: Make ppp_net_process_packet const correct
2010-04-28 17:27:35 -05:00
Denis Kenzior
5acb633a1d
gathdlc: Add recording support, ported from PPP
...
For protocol examination using wireshark
2010-04-28 17:27:35 -05:00
Denis Kenzior
41ce6212a1
gathdlc: Add receive ACCM support
2010-04-28 17:27:35 -05:00
Denis Kenzior
7c6c72f558
gathdlc: Support transmit ACCM
2010-04-28 17:27:35 -05:00
Denis Kenzior
e088f3c2bb
gatchat: Don't try to cleanup twice
...
In case we get unrefed from the disconnect callback
2010-04-28 17:27:35 -05:00
Denis Kenzior
0845dc3b5d
gatchat: Use GAtIO for write watchers
2010-04-28 17:27:34 -05:00
Denis Kenzior
6a66505e46
gatio: support for blocking / nonblocking writes
2010-04-28 17:27:34 -05:00
Denis Kenzior
85448aac8c
gatchat: get_channel should return one from GAtIO
2010-04-28 17:27:34 -05:00
Denis Kenzior
19115e0a15
gatchat: Channel is now setup by GAtIO
2010-04-28 17:27:34 -05:00
Denis Kenzior
033b576593
gatchat: Better re-entrancy handling
2010-04-28 17:27:34 -05:00
Denis Kenzior
9c3ae4746e
gsmdial: Get rid of g_at_chat_shutdown usage
2010-04-28 17:27:34 -05:00
Denis Kenzior
d875298404
gsmdial: Unref the chat instead of using shutdown
2010-04-28 17:27:34 -05:00
Denis Kenzior
8645b05c4f
gatmux: Unref the chat instead of using shutdown
2010-04-28 17:27:34 -05:00
Denis Kenzior
b5f81f4012
Fix: For now calling g_at_chat_unref is fine
...
Same as g_at_chat_shutdown in this case
2010-04-28 17:27:33 -05:00
Denis Kenzior
20a32ff5e8
Fix: g_at_chat_shutdown usage in test-mux
2010-04-28 17:27:33 -05:00
Denis Kenzior
244ea076cc
Fix: Remove easy uses of g_at_chat_shutdown
2010-04-28 17:27:33 -05:00
Denis Kenzior
f9b2e5cf5a
gatchat: Only set debug on IO if we have it
2010-04-28 17:27:33 -05:00
Denis Kenzior
3aa1faddef
gatchat: Replace shutdown by suspend/resume
...
Shutdown was actually pointless and according to Marcel he only had it
in mind for PPP useage.
2010-04-28 17:27:33 -05:00
Denis Kenzior
7b8f4f5dc8
gatchat: port gatchat to use gatio
2010-04-28 17:27:33 -05:00