Deleted Added
full compact
ipcp.c (6735) ipcp.c (7001)
1/*
2 * PPP IP Control Protocol (IPCP) Module
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 IP Control Protocol (IPCP) Module
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: ipcp.c,v 1.2 1995/02/26 12:17:33 amurai Exp $
21 *
22 * TODO:
23 * o More RFC1772 backwoard compatibility
24 */
25#include "fsm.h"
26#include "lcpproto.h"
27#include "lcp.h"
28#include "ipcp.h"

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

48static void IpcpSendTerminateReq __P((struct fsm *));
49static void IpcpDecodeConfig __P((u_char *, int, int));
50static void IpcpLayerStart __P((struct fsm *));
51static void IpcpLayerFinish __P((struct fsm *));
52static void IpcpLayerUp __P((struct fsm *));
53static void IpcpLayerDown __P((struct fsm *));
54static void IpcpInitRestartCounter __P((struct fsm *));
55
21 *
22 * TODO:
23 * o More RFC1772 backwoard compatibility
24 */
25#include "fsm.h"
26#include "lcpproto.h"
27#include "lcp.h"
28#include "ipcp.h"

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

48static void IpcpSendTerminateReq __P((struct fsm *));
49static void IpcpDecodeConfig __P((u_char *, int, int));
50static void IpcpLayerStart __P((struct fsm *));
51static void IpcpLayerFinish __P((struct fsm *));
52static void IpcpLayerUp __P((struct fsm *));
53static void IpcpLayerDown __P((struct fsm *));
54static void IpcpInitRestartCounter __P((struct fsm *));
55
56static struct pppTimer IpcpReportTimer;
56struct pppTimer IpcpReportTimer;
57
58static int lastInOctets, lastOutOctets;
59
60#define REJECTED(p, x) (p->his_reject & (1<<x))
61
62struct fsm IpcpFsm = {
63 "IPCP",
64 PROTO_IPCP,

--- 393 unchanged lines hidden ---
57
58static int lastInOctets, lastOutOctets;
59
60#define REJECTED(p, x) (p->his_reject & (1<<x))
61
62struct fsm IpcpFsm = {
63 "IPCP",
64 PROTO_IPCP,

--- 393 unchanged lines hidden ---