Commit Graph

12 Commits

Author SHA1 Message Date
Kristen Carlson Accardi 060a195432 use separate timers for PPP config and terminate
Prevent conflicts between config timer information and terminate timer
information by providing a new data structure which keeps timer information
for config and terminate requests separate.
2010-03-24 23:04:45 -05:00
Kristen Carlson Accardi fb40115bf2 switch to g_timeout_add_seconds()
we don't care that much about the exactness of our timer, so use
the more power efficient call.
2010-03-24 23:04:42 -05:00
Denis Kenzior c1c3b5502e Style: No point to write a function to wrap g_free
Using casting magic works well enough, and more consistent with the rest
of the library.
2010-03-24 15:24:06 -05:00
Kristen Carlson Accardi 7dbd19e441 fix memory leaks after ppp_transmit
Free packets in ppp_cp after calling ppp_transmit()
2010-03-24 13:21:31 -07:00
Kristen Carlson Accardi 954e114507 fix memory leaks in option handling
free the data as well as the link when deleting options lists.
2010-03-24 13:21:31 -07:00
Marcel Holtmann b4267dc624 Remove pointless optimization attempt with g_list_length() 2010-03-22 21:43:46 -07:00
Marcel Holtmann e396b7d5af Unnest some more functions in PPP CP implementation 2010-03-22 20:07:13 -07:00
Marcel Holtmann 91b742730a Some additional whitespace cleanup for PPP code 2010-03-22 20:01:28 -07:00
Marcel Holtmann 8667c8694d Fix the broken PPP CP debug trace function 2010-03-22 19:56:53 -07:00
Marcel Holtmann a09d38643b Remove some heavy nesting that is not needed at all 2010-03-22 19:32:47 -07:00
Marcel Holtmann c59a93e6fb Fix another pointer casting issue on 32-bit systems 2010-03-22 19:29:34 -07:00
Kristen Carlson Accardi 31e99d9d78 Generic PPP control protocol support
Implement a generic protocol that can be shared by both the LCP and the
NCP implementation.
2010-03-22 17:28:23 -07:00