Deleted Added
full compact
lqr.c (32439) lqr.c (32663)
1/*
2 * PPP Line Quality Monitoring (LQM) 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 Line Quality Monitoring (LQM) 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: lqr.c,v 1.20 1997/11/22 03:37:37 brian Exp $
20 * $Id: lqr.c,v 1.21 1998/01/11 17:50:40 brian Exp $
21 *
22 * o LQR based on RFC1333
23 *
24 * TODO:
25 * o LQM policy
26 * o Allow user to configure LQM method and interval.
27 */
28#include <sys/param.h>

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

37#include "timer.h"
38#include "fsm.h"
39#include "lcpproto.h"
40#include "lqr.h"
41#include "hdlc.h"
42#include "lcp.h"
43#include "loadalias.h"
44#include "vars.h"
21 *
22 * o LQR based on RFC1333
23 *
24 * TODO:
25 * o LQM policy
26 * o Allow user to configure LQM method and interval.
27 */
28#include <sys/param.h>

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

37#include "timer.h"
38#include "fsm.h"
39#include "lcpproto.h"
40#include "lqr.h"
41#include "hdlc.h"
42#include "lcp.h"
43#include "loadalias.h"
44#include "vars.h"
45#include "main.h"
46
45
47struct pppTimer LqrTimer;
46struct lqrdata MyLqrData, HisLqrData;
47struct lqrsave HisLqrSave;
48
48
49static struct pppTimer LqrTimer;
50
49static u_long lastpeerin = (u_long) - 1;
50
51static int lqmmethod;
52static u_int32_t echoseq;
53static u_int32_t gotseq;
54static int lqrsendcnt;
55
56struct echolqr {

--- 214 unchanged lines hidden ---
51static u_long lastpeerin = (u_long) - 1;
52
53static int lqmmethod;
54static u_int32_t echoseq;
55static u_int32_t gotseq;
56static int lqrsendcnt;
57
58struct echolqr {

--- 214 unchanged lines hidden ---