X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fcbcp.c;h=e48aa4637d72c3a2cafdcc6ec06f558ba71fe5f7;hb=f79e0204d1134667d049c14f2c2ab38c9cb6a81a;hp=64472f5c29bf0d096e5c58a3c26ccc8c19857071;hpb=1e7bc3ea35208555bf233daacee9d85ded13f999;p=ppp.git diff --git a/pppd/cbcp.c b/pppd/cbcp.c index 64472f5..e48aa46 100644 --- a/pppd/cbcp.c +++ b/pppd/cbcp.c @@ -18,9 +18,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#ifndef lint -static char rcsid[] = "$Id: cbcp.c,v 1.6 1999/03/16 22:54:38 paulus Exp $"; -#endif +#define RCSID "$Id: cbcp.c,v 1.11 2001/03/08 05:11:10 paulus Exp $" #include #include @@ -31,7 +29,8 @@ static char rcsid[] = "$Id: cbcp.c,v 1.6 1999/03/16 22:54:38 paulus Exp $"; #include "cbcp.h" #include "fsm.h" #include "lcp.h" -#include "ipcp.h" + +static const char rcsid[] = RCSID; /* * Options. @@ -40,7 +39,7 @@ static int setcbcp __P((char **)); static option_t cbcp_option_list[] = { { "callback", o_special, setcbcp, - "Ask for callback" }, + "Ask for callback", OPT_PRIO | OPT_A2STRVAL, &cbcp[0].us_number }, { NULL } }; @@ -384,7 +383,7 @@ cbcp_resp(us) PUTCHAR(len , bufp); PUTCHAR(0, bufp); cbcp_send(us, CBCP_RESP, buf, len); - (*ipcp_protent.open)(us->us_unit); + start_networks(); return; } } @@ -439,6 +438,8 @@ cbcp_recvack(us, pckt, len) if (address[0]) dbglog("peer will call: %s", address); } + if (type == CB_CONF_NO) + return; } cbcp_up(us); @@ -451,4 +452,5 @@ cbcp_up(us) { persist = 0; lcp_close(0, "Call me back, please"); + status = EXIT_CALLBACK; }