summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp_ipcp.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-04-13 13:58:12 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-04-13 13:58:12 -0500
commit9116b7e8f8ad4576b0c7456d1911f1c490d76754 (patch)
tree4b67baf838b551226e474b3994bbb991798b9a0b /gatchat/ppp_ipcp.c
parent87939c2fcf369e9fedacfd3fdc44527ad11be9e4 (diff)
downloadofono-9116b7e8f8ad4576b0c7456d1911f1c490d76754.tar.bz2
ppp: Let the upper layer handle open / up events
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.
Diffstat (limited to 'gatchat/ppp_ipcp.c')
-rw-r--r--gatchat/ppp_ipcp.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gatchat/ppp_ipcp.c b/gatchat/ppp_ipcp.c
index 74e7778f..f695079e 100644
--- a/gatchat/ppp_ipcp.c
+++ b/gatchat/ppp_ipcp.c
@@ -149,14 +149,6 @@ static void ipcp_down(struct pppcp_data *pppcp)
pppcp_set_local_options(pppcp, ipcp->options, ipcp->options_len);
}
-/*
- * Tell the protocol to start the handshake
- */
-static void ipcp_started(struct pppcp_data *data)
-{
- pppcp_signal_up(data);
-}
-
static void ipcp_finished(struct pppcp_data *pppcp)
{
}
@@ -300,7 +292,6 @@ struct pppcp_proto ipcp_proto = {
.supported_codes = IPCP_SUPPORTED_CODES,
.this_layer_up = ipcp_up,
.this_layer_down = ipcp_down,
- .this_layer_started = ipcp_started,
.this_layer_finished = ipcp_finished,
.rca = ipcp_rca,
.rcn_nak = ipcp_rcn_nak,