Lines Matching full:lcp
2 * lcp.c - PPP Link Control Protocol.
43 #define RCSID "$Id: lcp.c,v 1.74 2004/11/13 02:28:15 paulus Exp $"
55 #include "lcp.h"
72 * LCP-related command-line options.
74 int lcp_echo_interval = 0; /* Interval between LCP echo-requests */
88 /* LCP options */
90 "Don't request/allow any LCP options" },
149 { "lcp-echo-failure", o_int, &lcp_echo_fails,
152 { "lcp-echo-interval", o_int, &lcp_echo_interval,
153 "Set time in seconds between LCP echo requests", OPT_PRIO },
154 { "lcp-restart", o_int, &lcp_fsm[0].timeouttime,
155 "Set time in seconds between LCP retransmissions", OPT_PRIO },
156 { "lcp-max-terminate", o_int, &lcp_fsm[0].maxtermtransmits,
157 "Set maximum number of LCP terminate-request transmissions", OPT_PRIO },
158 { "lcp-max-configure", o_int, &lcp_fsm[0].maxconfreqtransmits,
159 "Set maximum number of LCP configure-request transmissions", OPT_PRIO },
160 { "lcp-max-failure", o_int, &lcp_fsm[0].maxnakloops,
161 "Set limit on number of LCP configure-naks", OPT_PRIO },
190 fsm lcp_fsm[NUM_PPP]; /* LCP fsm structure (global)*/
220 * routines to send LCP echos to peer
231 static fsm_callbacks lcp_callbacks = { /* LCP callback routines */
245 lcp_extcode, /* Called to handle LCP-specific codes */
246 "LCP" /* String name of protocol */
272 "LCP",
333 * lcp_init - Initialize LCP.
373 * lcp_open - LCP is allowed to come up.
392 * lcp_close - Take LCP down.
480 * lcp_input - Input LCP packet.
499 * lcp_extcode - Handle a LCP-specific code.
560 * Protocol-Reject packets received in any state other than the LCP
564 LCP in state %d", f->state));
590 * Can't reject LCP!
592 error("Received Protocol-Reject for LCP!");
608 * rejected packet. We only get here if LCP is in the OPENED state.
920 * or if LCP is in the OPENED state.
1314 * or if LCP is in the OPENED state.
1868 * lcp_up - LCP has come UP.
1917 * lcp_down - LCP has gone DOWN.
1940 * lcp_starting - LCP needs the lower layer up.
1951 * lcp_finished - LCP has finished with the lower layer.
1962 * lcp_printpkt - print the contents of an LCP packet.
2207 * Timer expired for the LCP echo requests from this process.
2228 * LcpEchoTimeout - Timer expired on the LCP echo
2242 * LcpEchoReply - LCP has received a reply to the echo
2256 dbglog("lcp: received short Echo-Reply, length %d", len);
2304 * lcp_echo_lowerup - Start the timer for the LCP frame
2324 * lcp_echo_lowerdown - Stop the timer for the LCP frame