fsm.c (28974) | fsm.c (29294) |
---|---|
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.16 1997/08/25 00:29:12 brian Exp $ | 20 * $Id: fsm.c,v 1.17 1997/08/31 22:59:27 brian 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" --- 677 unchanged lines hidden (view full) --- 706 FsmOutput(fp, CODE_RESETACK, fp->reqid, NULL, 0); 707 pfree(bp); 708} 709 710void 711FsmRecvResetAck(struct fsm * fp, struct fsmheader * lhp, struct mbuf * bp) 712{ 713 LogPrintf(fp->LogLevel, "RecvResetAck\n"); | 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" --- 677 unchanged lines hidden (view full) --- 706 FsmOutput(fp, CODE_RESETACK, fp->reqid, NULL, 0); 707 pfree(bp); 708} 709 710void 711FsmRecvResetAck(struct fsm * fp, struct fsmheader * lhp, struct mbuf * bp) 712{ 713 LogPrintf(fp->LogLevel, "RecvResetAck\n"); |
714 Pred1Init(1); /* Initialize Input part */ |
|
714 fp->reqid++; 715 pfree(bp); 716} 717 718struct fsmcodedesc FsmCodes[] = { 719 {FsmRecvConfigReq, "Configure Request",}, 720 {FsmRecvConfigAck, "Configure Ack",}, 721 {FsmRecvConfigNak, "Configure Nak",}, --- 43 unchanged lines hidden --- | 715 fp->reqid++; 716 pfree(bp); 717} 718 719struct fsmcodedesc FsmCodes[] = { 720 {FsmRecvConfigReq, "Configure Request",}, 721 {FsmRecvConfigAck, "Configure Ack",}, 722 {FsmRecvConfigNak, "Configure Nak",}, --- 43 unchanged lines hidden --- |