fsm.c (22997) | fsm.c (25630) |
---|---|
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$ | 20 * $Id: fsm.c,v 1.9 1997/02/22 16:10:13 peter 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" --- 316 unchanged lines hidden (view full) --- 345 pfree(bp); 346 return; 347 case ST_CLOSED: 348 (fp->SendTerminateAck)(fp); 349 pfree(bp); 350 return; 351 case ST_CLOSING: 352 case ST_STOPPING: | 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" --- 316 unchanged lines hidden (view full) --- 345 pfree(bp); 346 return; 347 case ST_CLOSED: 348 (fp->SendTerminateAck)(fp); 349 pfree(bp); 350 return; 351 case ST_CLOSING: 352 case ST_STOPPING: |
353logprintf("## state = %d\n", fp->state); | 353 logprintf("## state = %d\n", fp->state); |
354 pfree(bp); 355 return; 356 } 357 358 (fp->DecodeConfig)(MBUF_CTOP(bp), flen, MODE_REQ); 359 360 if (nakp == NakBuff && rejp == RejBuff) 361 ackaction = 1; --- 452 unchanged lines hidden --- | 354 pfree(bp); 355 return; 356 } 357 358 (fp->DecodeConfig)(MBUF_CTOP(bp), flen, MODE_REQ); 359 360 if (nakp == NakBuff && rejp == RejBuff) 361 ackaction = 1; --- 452 unchanged lines hidden --- |