1/* 2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 3 * 4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 5 * 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. 17 *
|
18 * $Id: lqr.h,v 1.7 1997/08/25 00:29:19 brian Exp $
|
18 * $Id: lqr.h,v 1.8 1997/10/26 01:03:10 brian Exp $ |
19 * 20 * TODO: 21 */ 22 23/* 24 * Structure of LQR packet defined in RFC1333 25 */ 26struct lqrdata { 27 u_long MagicNumber; 28 u_long LastOutLQRs; 29 u_long LastOutPackets; 30 u_long LastOutOctets; 31 u_long PeerInLQRs; 32 u_long PeerInPackets; 33 u_long PeerInDiscards; 34 u_long PeerInErrors; 35 u_long PeerInOctets; 36 u_long PeerOutLQRs; 37 u_long PeerOutPackets; 38 u_long PeerOutOctets; 39}; 40 41struct lqrsave { 42 u_long SaveInLQRs; 43 u_long SaveInPackets; 44 u_long SaveInDiscards; 45 u_long SaveInErrors; 46 u_long SaveInOctets; 47}; 48 49struct lqrdata MyLqrData, HisLqrData; 50struct lqrsave HisLqrSave; 51 52/* 53 * We support LQR and ECHO as LQM method 54 */ 55#define LQM_LQR 1 56#define LQM_ECHO 2 57 58extern void LqrDump(char *, struct lqrdata *); 59extern void LqrChangeOrder(struct lqrdata *, struct lqrdata *); 60extern void StartLqm(void); 61extern void StopLqr(int); 62extern void StopLqrTimer(void); 63extern void RecvEchoLqr(struct mbuf *);
|
64extern void LqrInput(struct mbuf *); |
|