Deleted Added
full compact
fsm.c (37010) fsm.c (37019)
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.28 1998/05/21 21:45:20 brian Exp $
20 * $Id: fsm.c,v 1.29 1998/06/15 19:06:42 brian Exp $
21 *
22 * TODO:
23 */
24
25#include <sys/types.h>
26#include <netinet/in.h>
27#include <netinet/in_systm.h>
28#include <netinet/ip.h>

--- 401 unchanged lines hidden (view full) ---

430{
431 struct fsm_decode dec;
432 int plen, flen;
433 int ackaction = 0;
434
435 plen = mbuf_Length(bp);
436 flen = ntohs(lhp->length) - sizeof *lhp;
437 if (plen < flen) {
21 *
22 * TODO:
23 */
24
25#include <sys/types.h>
26#include <netinet/in.h>
27#include <netinet/in_systm.h>
28#include <netinet/ip.h>

--- 401 unchanged lines hidden (view full) ---

430{
431 struct fsm_decode dec;
432 int plen, flen;
433 int ackaction = 0;
434
435 plen = mbuf_Length(bp);
436 flen = ntohs(lhp->length) - sizeof *lhp;
437 if (plen < flen) {
438 log_Printf(LogERROR, "%s: FsmRecvConfigReq: plen (%d) < flen (%d)\n",
438 log_Printf(LogWARN, "%s: FsmRecvConfigReq: plen (%d) < flen (%d)\n",
439 fp->link->name, plen, flen);
440 mbuf_Free(bp);
441 return;
442 }
443
444 /*
445 * Check and process easy case
446 */

--- 515 unchanged lines hidden ---
439 fp->link->name, plen, flen);
440 mbuf_Free(bp);
441 return;
442 }
443
444 /*
445 * Check and process easy case
446 */

--- 515 unchanged lines hidden ---