lqr.c (28679) | lqr.c (28974) |
---|---|
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.16 1997/07/02 19:18:42 phk Exp $ | 20 * $Id: lqr.c,v 1.17 1997/08/25 00:29:18 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 "fsm.h" --- 209 unchanged lines hidden (view full) --- 238 else 239 StopTimer(&LqrTimer); 240} 241 242void 243LqrDump(char *message, struct lqrdata * lqr) 244{ 245 if (LogIsKept(LogLQM)) { | 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 "fsm.h" --- 209 unchanged lines hidden (view full) --- 238 else 239 StopTimer(&LqrTimer); 240} 241 242void 243LqrDump(char *message, struct lqrdata * lqr) 244{ 245 if (LogIsKept(LogLQM)) { |
246 LogPrintf(LogLQM, "%s:", message); | 246 LogPrintf(LogLQM, "%s:\n", message); |
247 LogPrintf(LogLQM, " Magic: %08x LastOutLQRs: %08x\n", 248 lqr->MagicNumber, lqr->LastOutLQRs); 249 LogPrintf(LogLQM, " LastOutPackets: %08x LastOutOctets: %08x\n", 250 lqr->LastOutPackets, lqr->LastOutOctets); 251 LogPrintf(LogLQM, " PeerInLQRs: %08x PeerInPackets: %08x\n", 252 lqr->PeerInLQRs, lqr->PeerInPackets); 253 LogPrintf(LogLQM, " PeerInDiscards: %08x PeerInErrors: %08x\n", 254 lqr->PeerInDiscards, lqr->PeerInErrors); 255 LogPrintf(LogLQM, " PeerInOctets: %08x PeerOutLQRs: %08x\n", 256 lqr->PeerInOctets, lqr->PeerOutLQRs); 257 LogPrintf(LogLQM, " PeerOutPackets: %08x PeerOutOctets: %08x\n", 258 lqr->PeerOutPackets, lqr->PeerOutOctets); 259 } 260} | 247 LogPrintf(LogLQM, " Magic: %08x LastOutLQRs: %08x\n", 248 lqr->MagicNumber, lqr->LastOutLQRs); 249 LogPrintf(LogLQM, " LastOutPackets: %08x LastOutOctets: %08x\n", 250 lqr->LastOutPackets, lqr->LastOutOctets); 251 LogPrintf(LogLQM, " PeerInLQRs: %08x PeerInPackets: %08x\n", 252 lqr->PeerInLQRs, lqr->PeerInPackets); 253 LogPrintf(LogLQM, " PeerInDiscards: %08x PeerInErrors: %08x\n", 254 lqr->PeerInDiscards, lqr->PeerInErrors); 255 LogPrintf(LogLQM, " PeerInOctets: %08x PeerOutLQRs: %08x\n", 256 lqr->PeerInOctets, lqr->PeerOutLQRs); 257 LogPrintf(LogLQM, " PeerOutPackets: %08x PeerOutOctets: %08x\n", 258 lqr->PeerOutPackets, lqr->PeerOutOctets); 259 } 260} |