Deleted Added
full compact
ipcp.c (9440) ipcp.c (13389)
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: ipcp.c,v 1.5 1995/07/04 02:57:11 davidg Exp $
20 * $Id: ipcp.c,v 1.6 1995/07/08 08:28:04 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"

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

115
116void
117ReportIpcpStatus()
118{
119 struct ipcpstate *icp = &IpcpInfo;
120 struct fsm *fp = &IpcpFsm;
121
122 printf("%s [%s]\n", fp->name, StateNames[fp->state]);
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"

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

115
116void
117ReportIpcpStatus()
118{
119 struct ipcpstate *icp = &IpcpInfo;
120 struct fsm *fp = &IpcpFsm;
121
122 printf("%s [%s]\n", fp->name, StateNames[fp->state]);
123 printf(" his side: %s, %x\n",
123 printf(" his side: %s, %lx\n",
124 inet_ntoa(icp->his_ipaddr), icp->his_compproto);
124 inet_ntoa(icp->his_ipaddr), icp->his_compproto);
125 printf(" my side: %s, %x\n",
125 printf(" my side: %s, %lx\n",
126 inet_ntoa(icp->want_ipaddr), icp->want_compproto);
127 printf("connected: %d secs, idle: %d secs\n\n", ipConnectSecs, ipIdleSecs);
128 printf("Defaults:\n");
129 printf(" My Address: %s/%d\n",
130 inet_ntoa(DefMyAddress.ipaddr), DefMyAddress.width);
131 printf(" His Address: %s/%d\n",
132 inet_ntoa(DefHisAddress.ipaddr), DefHisAddress.width);
133 printf(" Negotiation: %s/%d\n",

--- 337 unchanged lines hidden ---
126 inet_ntoa(icp->want_ipaddr), icp->want_compproto);
127 printf("connected: %d secs, idle: %d secs\n\n", ipConnectSecs, ipIdleSecs);
128 printf("Defaults:\n");
129 printf(" My Address: %s/%d\n",
130 inet_ntoa(DefMyAddress.ipaddr), DefMyAddress.width);
131 printf(" His Address: %s/%d\n",
132 inet_ntoa(DefHisAddress.ipaddr), DefHisAddress.width);
133 printf(" Negotiation: %s/%d\n",

--- 337 unchanged lines hidden ---