Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-04-28 | gatchat: Channel is now setup by GAtIO | Denis Kenzior | 1 | -2/+0 | |
2010-04-28 | gatchat: Better re-entrancy handling | Denis Kenzior | 1 | -6/+13 | |
2010-04-28 | gsmdial: Get rid of g_at_chat_shutdown usage | Denis Kenzior | 1 | -9/+16 | |
2010-04-28 | gsmdial: Unref the chat instead of using shutdown | Denis Kenzior | 1 | -2/+2 | |
2010-04-28 | gatmux: Unref the chat instead of using shutdown | Denis Kenzior | 1 | -1/+2 | |
2010-04-28 | gatchat: Only set debug on IO if we have it | Denis Kenzior | 1 | -1/+2 | |
2010-04-28 | gatchat: Replace shutdown by suspend/resume | Denis Kenzior | 2 | -13/+29 | |
Shutdown was actually pointless and according to Marcel he only had it in mind for PPP useage. | |||||
2010-04-28 | gatchat: port gatchat to use gatio | Denis Kenzior | 1 | -112/+41 | |
2010-04-28 | gatio: Remove g_at_io_shutdown | Denis Kenzior | 2 | -18/+13 | |
2010-04-28 | gatio: Get re-entrancy correct | Denis Kenzior | 1 | -3/+6 | |
2010-04-28 | gatio: Style fix for gsource id comparisons | Denis Kenzior | 1 | -2/+2 | |
2010-04-28 | gatio: Kill the reader when no more space | Denis Kenzior | 1 | -0/+4 | |
2010-04-28 | gatchat: Remove g_at_chat_set_syntax | Denis Kenzior | 2 | -14/+0 | |
Never used and too unsafe in its current form | |||||
2010-04-28 | gatchat: Add initial GAtIO implementation | Denis Kenzior | 2 | -0/+325 | |
2010-04-26 | ppp: use default ACCM when sending LCP codes 1-7 | Kristen Carlson Accardi | 3 | -0/+20 | |
According to the spec, you must transmit all Link Configuration, Termination, and Code-Reject packets as if no options had been negotiated. This requires that when encoding we use the default ACCM of 0xffffffff when sending these types of packets. | |||||
2010-04-26 | ppp: discard non-LCP packets in ESTABLISHMENT phase | Kristen Carlson Accardi | 1 | -0/+7 | |
2010-04-24 | Fix broken HDLC flag handling | Marcel Holtmann | 1 | -2/+13 | |
2010-04-24 | Fix wrong escape character check in HDLC transmit | Marcel Holtmann | 1 | -2/+2 | |
2010-04-24 | Allow real wrapping around of HDLC transmit ring buffer | Marcel Holtmann | 1 | -2/+2 | |
2010-04-24 | Add offset parameter to ring_buffer_write_ptr() function | Marcel Holtmann | 5 | -10/+12 | |
2010-04-24 | Add support for wrapping of HDLC transmit ring buffer | Marcel Holtmann | 1 | -30/+57 | |
2010-04-23 | Use HDLC_FCS helper where possible | Marcel Holtmann | 1 | -1/+1 | |
2010-04-23 | Use HDLC constants instead of magic numbers | Marcel Holtmann | 1 | -4/+4 | |
2010-04-23 | Add support for wrapping of HDLC receive ring buffer | Marcel Holtmann | 1 | -21/+34 | |
2010-04-22 | ppp: Fix trivial style error | Denis Kenzior | 1 | -1/+1 | |
2010-04-22 | ppp: change MTU on TUN device when MRU option received | Kristen Carlson Accardi | 3 | -5/+23 | |
2010-04-22 | ppp: Request MRU if we ever get NAKed with it | Denis Kenzior | 1 | -3/+45 | |
Huawei E160G hardware seems to NAK our configure request and suggest that it will never send packets bigger than 1440 bytes. Since we don't particularly care (our receive ring buffer is 4K, so it can handle 2048 byte packets), we just re-send the Configure Request with the preferred value. | |||||
2010-04-22 | ppp: Fix trivial copy paste error | Denis Kenzior | 1 | -1/+1 | |
2010-04-22 | ppp: Shut off IPCP when entering TERMINATING phase | Denis Kenzior | 1 | -0/+2 | |
2010-04-22 | ppp: implement MRU option | Kristen Carlson Accardi | 4 | -2/+33 | |
If the peer requests a MRU option, set the mtu for the network phase. When we are in link establishment phase, we should continue to behave as if no option has been set and the peer should use the default MRU. This option is required for the Huawei E160G modem. | |||||
2010-04-15 | No to check for NULL pointers with g_free | Marcel Holtmann | 1 | -4/+2 | |
2010-04-14 | ppp: nak unknown auth protocol | Kristen Carlson Accardi | 3 | -4/+38 | |
If we are sent a Config-Request for an auth proto other than CHAP with MD5, send a NAK. | |||||
2010-04-14 | Fix: GAtMux channels should return EAGAIN | Denis Kenzior | 1 | -0/+3 | |
GAtChat uses non-blocking semantics, so the GAtMux channels should return the EAGAIN status to make GAtChat work properly. | |||||
2010-04-13 | ppp: Refing the channel is actually not necessary | Denis Kenzior | 1 | -3/+2 | |
The read_watch and write_watches both take a ref | |||||
2010-04-13 | Fix: Don't try to set channel flags if they're 0 | Denis Kenzior | 1 | -6/+7 | |
2010-04-13 | ppp: TUN channel should not be opened NONBLOCKING | Denis Kenzior | 1 | -1/+1 | |
We don't handle it as a nonblocking channel and getting it right would be a nightmare. | |||||
2010-04-13 | ppp: Cleanup function definitions in ppp.h | Denis Kenzior | 1 | -11/+16 | |
2010-04-13 | ppp: remove pfc and acfc | Kristen Carlson Accardi | 3 | -35/+1 | |
We will not support pfc or acfc | |||||
2010-04-13 | ppp: remove references to magic number | Kristen Carlson Accardi | 2 | -6/+8 | |
We will not support loopback detection. | |||||
2010-04-13 | ppp: Get rid of net_open and net_close | Denis Kenzior | 3 | -63/+50 | |
There really isn't a need for these now | |||||
2010-04-13 | ppp: Introduce ppp_net_down_notify | Denis Kenzior | 3 | -0/+7 | |
2010-04-13 | ppp: Introduce ppp_net_up_notify and use it | Denis Kenzior | 3 | -16/+17 | |
This is slightly cleaner way than defining a weird callback function. | |||||
2010-04-13 | ppp: Hide ppp_net definition in ppp_net.c | Denis Kenzior | 3 | -37/+45 | |
2010-04-13 | ppp: Use chap functions directly, instead of auth | Denis Kenzior | 1 | -11/+9 | |
2010-04-13 | ppp: Remove auth_ functions from ppp_auth.c | Denis Kenzior | 2 | -110/+33 | |
These really serve no purpose right now as we use only CHAP. So they only take up space and make the code harder to read. If we implement 1-3 auth protocols, then they're easier handled inside gatppp.c. If we have more, then a proper auth driver framework is required. | |||||
2010-04-13 | ppp: introduce ppp_auth_notify | Denis Kenzior | 2 | -0/+9 | |
This function will be notified whenever authentication has succeeded / failed. This can happen in the authentication phase or during the network phase. If auth fails, then we should proceed to the terminate phase. | |||||
2010-04-13 | ppp: Add set / get password & username | Denis Kenzior | 2 | -6/+34 | |
Also refactor the set credentials function, we will be removing the auth object shortly | |||||
2010-04-13 | ppp: Transition the phase directly | Denis Kenzior | 3 | -76/+33 | |
Use of the generate event function, while more 'pure' with regard to how the spec views transitions, actually makes code more difficult to read. Instead use phase transitions directly inside gatppp. This still bleeds through a little into lcp code, and probably should be fixed in a better way eventually. | |||||
2010-04-13 | ppp: Refactor how tls/tlu/tld/tlf are used | Denis Kenzior | 1 | -13/+6 | |
With the upper layer driving these, the special handling is no longer required. | |||||
2010-04-13 | ppp: Let the upper layer handle open / up events | Denis Kenzior | 3 | -19/+2 | |
This removes the need for the layer_started functions in lcp and ipcp. For LCP the link is always up unless the socket has been closed, and for IPCP the link should be opened as soon as LCP is ready anyway. |