ppp: Refactor server-side API
authorDenis Kenzior <denkenz@gmail.com>
Tue, 29 Jun 2010 16:53:11 +0000 (11:53 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 29 Jun 2010 16:53:11 +0000 (11:53 -0500)
commit820b1f55c8f9e615ef860327ef58a54006ec8822
treef760579f42c3d87d9dc415848414cfa4b8a6e4a2
parent969862337a77d10081cc72ca9ec0aaafaa3e977e
ppp: Refactor server-side API

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.
gatchat/gatppp.c
gatchat/gatppp.h
gatchat/ppp.h
gatchat/ppp_cp.c
gatchat/ppp_cp.h
gatchat/ppp_ipcp.c
gatchat/ppp_lcp.c