Deleted Added
full compact
hdlc.c (13379) hdlc.c (13389)
1/*
2 * PPP High Level Link Control (HDLC) 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 High Level Link Control (HDLC) 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: hdlc.c,v 1.5 1995/07/30 15:18:29 gpalmer Exp $
20 * $Id: hdlc.c,v 1.6 1996/01/10 21:27:45 phk Exp $
21 *
22 * TODO:
23 */
24#include "fsm.h"
25#include "hdlc.h"
26#include "lcpproto.h"
27#include "lcp.h"
28#include "lqr.h"
29#include "vars.h"
21 *
22 * TODO:
23 */
24#include "fsm.h"
25#include "hdlc.h"
26#include "lcpproto.h"
27#include "lcp.h"
28#include "lqr.h"
29#include "vars.h"
30#include "pred.h"
31#include "modem.h"
32#include "ccp.h"
30
31struct hdlcstat {
32 int badfcs;
33 int badaddr;
34 int badcommand;
35 int unknownproto;
36} HdlcStat;
37

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

259 int cnt;
260
261 statp = ProtocolStat;
262 statp--;
263 cnt = 0;
264 printf(" Protocol in out Protocol in out\n");
265 do {
266 statp++;
33
34struct hdlcstat {
35 int badfcs;
36 int badaddr;
37 int badcommand;
38 int unknownproto;
39} HdlcStat;
40

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

262 int cnt;
263
264 statp = ProtocolStat;
265 statp--;
266 cnt = 0;
267 printf(" Protocol in out Protocol in out\n");
268 do {
269 statp++;
267 printf(" %-9s: %8u, %8u",
270 printf(" %-9s: %8lu, %8lu",
268 statp->name, statp->in_count, statp->out_count);
269 if (++cnt == 2) {
270 printf("\n");
271 cnt = 0;
272 }
273 } while (statp->number);
274 if (cnt)
275 printf("\n");

--- 123 unchanged lines hidden ---
271 statp->name, statp->in_count, statp->out_count);
272 if (++cnt == 2) {
273 printf("\n");
274 cnt = 0;
275 }
276 } while (statp->number);
277 if (cnt)
278 printf("\n");

--- 123 unchanged lines hidden ---