2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
6 * Redistribution and use in source and binary forms are permitted
7 * provided that the above copyright notice and this paragraph are
8 * duplicated in all such forms and that any documentation,
9 * advertising materials, and other materials related to such
10 * distribution and use acknowledge that the software was developed
11 * by the Internet Initiative Japan. The name of the
12 * IIJ may not be used to endorse or promote products derived
13 * from this software without specific prior written permission.
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
24 * Structure of LQR packet defined in RFC1989
27 u_int32_t MagicNumber;
28 u_int32_t LastOutLQRs; /* most recently received PeerOutLQRs */
29 u_int32_t LastOutPackets; /* most recently received PeerOutPackets */
30 u_int32_t LastOutOctets; /* most recently received PeerOutOctets */
31 u_int32_t PeerInLQRs; /* Peers SaveInLQRs */
32 u_int32_t PeerInPackets; /* Peers SaveInPackets */
33 u_int32_t PeerInDiscards; /* Peers SaveInDiscards */
34 u_int32_t PeerInErrors; /* Peers SaveInErrors */
35 u_int32_t PeerInOctets; /* Peers SaveInOctets */
36 u_int32_t PeerOutLQRs; /* Peers OutLQRs (hdlc.h) */
37 u_int32_t PeerOutPackets; /* Peers OutPackets (hdlc.h) */
38 u_int32_t PeerOutOctets; /* Peers OutOctets (hdlc.h) */
42 * We support LQR and ECHO as LQM method
54 extern void lqr_Dump(const char *, const char *, const struct lqrdata *);
55 extern void lqr_ChangeOrder(struct lqrdata *, struct lqrdata *);
56 extern void lqr_Start(struct lcp *);
57 extern void lqr_reStart(struct lcp *);
58 extern void lqr_Stop(struct physical *, int);
59 extern void lqr_StopTimer(struct physical *);
60 extern struct mbuf *lqr_RecvEcho(struct fsm *, struct mbuf *);
61 extern struct mbuf *lqr_Input(struct bundle *, struct link *, struct mbuf *);
63 extern struct layer lqrlayer;