* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#ifndef lint
-static char rcsid[] = "$Id: cbcp.c,v 1.5 1999/03/16 02:58:01 paulus Exp $";
-#endif
+#define RCSID "$Id: cbcp.c,v 1.12 2002/05/21 17:26:49 dfs Exp $"
#include <stdio.h>
#include <string.h>
#include "cbcp.h"
#include "fsm.h"
#include "lcp.h"
-#include "ipcp.h"
+
+static const char rcsid[] = RCSID;
/*
* Options.
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 }
};
NULL,
0,
"CBCP",
+ NULL,
cbcp_option_list,
NULL,
NULL,
PUTCHAR(len , bufp);
PUTCHAR(0, bufp);
cbcp_send(us, CBCP_RESP, buf, len);
- (*ipcp_protent.open)(us->us_unit);
+ start_networks(us->us_unit);
return;
}
}
if (address[0])
dbglog("peer will call: %s", address);
}
+ if (type == CB_CONF_NO)
+ return;
}
cbcp_up(us);
{
persist = 0;
lcp_close(0, "Call me back, please");
+ status = EXIT_CALLBACK;
}