1/* 2 * PPP Finite State Machine for LCP/IPCP 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 *
| 1/* 2 * PPP Finite State Machine for LCP/IPCP 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 *
|
20 * $Id: fsm.c,v 1.3 1995/05/30 03:50:32 rgrimes Exp $
| 20 * $Id: fsm.c,v 1.4 1995/09/09 13:23:53 joerg Exp $
|
21 * 22 * TODO: 23 * o Refer loglevel for log output 24 * o Better option log display 25 */ 26#include "fsm.h" 27#include "hdlc.h" 28#include "lqr.h" 29#include "lcpproto.h" 30#include "lcp.h"
| 21 * 22 * TODO: 23 * o Refer loglevel for log output 24 * o Better option log display 25 */ 26#include "fsm.h" 27#include "hdlc.h" 28#include "lqr.h" 29#include "lcpproto.h" 30#include "lcp.h"
|
| 31#include "ccp.h"
|
31 32void FsmSendConfigReq(struct fsm *fp); 33void FsmSendTerminateReq(struct fsm *fp); 34void FsmInitRestartCounter(struct fsm *fp); 35void FsmTimeout(struct fsm *fp); 36
| 32 33void FsmSendConfigReq(struct fsm *fp); 34void FsmSendTerminateReq(struct fsm *fp); 35void FsmInitRestartCounter(struct fsm *fp); 36void FsmTimeout(struct fsm *fp); 37
|
37char *StateNames[] = {
| 38char const *StateNames[] = {
|
38 "Initial", "Starting", "Closed", "Stopped", "Closing", "Stopping", 39 "Req-Sent", "Ack-Rcvd", "Ack-Sent", "Opend", 40}; 41 42void 43FsmInit(fp) 44struct fsm *fp; 45{
--- 767 unchanged lines hidden --- | 39 "Initial", "Starting", "Closed", "Stopped", "Closing", "Stopping", 40 "Req-Sent", "Ack-Rcvd", "Ack-Sent", "Opend", 41}; 42 43void 44FsmInit(fp) 45struct fsm *fp; 46{
--- 767 unchanged lines hidden --- |