mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-23 01:53:46 +01:00
76bd0c0a9d
ppp based on these patches for about 3 weeks with no downtime. The original submitters comments: Two features iijppp has over kernel ppp that I like are predictor1 compression and demand dialing. Here are a few bug fixes. I expanded the priority queueing scheme and discovered it was broken due to the assignment at ip.c line 300. All packets were being queued at the same priority. Fixing priority queueing broke predictor1 compression. Packets were compressed before being queued and predictor1 worked as long as the packets were popped off the queue in the same order they were pushed onto the queue. There were a few byte order problems in IP header tests also. There is a recursion problem in SendLqrReport(). LcpClose() is called when "Too many echo packets are lost" which winds up in SendLqrReport() again. I believe the original intention was to just stop the LQR timer with the call to StopLqr() but the side effects hurt. Submitted by: John Capo <jc@irbs.com>
68 lines
1.9 KiB
C
68 lines
1.9 KiB
C
/*
|
|
* Written by Toshiharu OHNO (tony-o@iij.ad.jp)
|
|
*
|
|
* Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
|
|
*
|
|
* Redistribution and use in source and binary forms are permitted
|
|
* provided that the above copyright notice and this paragraph are
|
|
* duplicated in all such forms and that any documentation,
|
|
* advertising materials, and other materials related to such
|
|
* distribution and use acknowledge that the software was developed
|
|
* by the Internet Initiative Japan. The name of the
|
|
* IIJ may not be used to endorse or promote products derived
|
|
* from this software without specific prior written permission.
|
|
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
|
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
|
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
*
|
|
* $Id: lqr.h,v 1.2 1995/02/26 12:17:40 amurai Exp $
|
|
*
|
|
* TODO:
|
|
*/
|
|
|
|
#ifndef _LQR_H_
|
|
#define _LQR_H_
|
|
|
|
/*
|
|
* Structure of LQR packet defined in RFC1333
|
|
*/
|
|
struct lqrdata {
|
|
u_long MagicNumber;
|
|
u_long LastOutLQRs;
|
|
u_long LastOutPackets;
|
|
u_long LastOutOctets;
|
|
u_long PeerInLQRs;
|
|
u_long PeerInPackets;
|
|
u_long PeerInDiscards;
|
|
u_long PeerInErrors;
|
|
u_long PeerInOctets;
|
|
u_long PeerOutLQRs;
|
|
u_long PeerOutPackets;
|
|
u_long PeerOutOctets;
|
|
};
|
|
|
|
struct lqrsave {
|
|
u_long SaveInLQRs;
|
|
u_long SaveInPackets;
|
|
u_long SaveInDiscards;
|
|
u_long SaveInErrors;
|
|
u_long SaveInOctets;
|
|
};
|
|
|
|
struct lqrdata MyLqrData, HisLqrData;
|
|
struct lqrsave HisLqrSave;
|
|
|
|
/*
|
|
* We support LQR and ECHO as LQM method
|
|
*/
|
|
#define LQM_LQR 1
|
|
#define LQM_ECHO 2
|
|
|
|
extern void LqrDump __P((char *, struct lqrdata *));
|
|
extern void LqrChangeOrder __P((struct lqrdata *, struct lqrdata *));
|
|
extern void StartLqm __P((void));
|
|
extern void StopLqr __P((int));
|
|
extern void StopLqrTimer __P((void));
|
|
extern void RecvEchoLqr __P((struct mbuf *));
|
|
#endif
|