From 9116b7e8f8ad4576b0c7456d1911f1c490d76754 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 13 Apr 2010 13:58:12 -0500 Subject: 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. --- gatchat/ppp_ipcp.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gatchat/ppp_ipcp.c') 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, -- cgit v1.2.3