summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/log.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-05-07 23:30:50 +0000
committerbrian <brian@FreeBSD.org>1997-05-07 23:30:50 +0000
commit2d9bc1f640252f5529c9e9f3706b173aaae57db9 (patch)
tree8b507e9c3e3f3104b5e6828880b130d16d66f53a /usr.sbin/ppp/log.c
parentc0df205f61114f6e2e8e0e81b742de41d87cfcca (diff)
downloadFreeBSD-src-2d9bc1f640252f5529c9e9f3706b173aaae57db9.zip
FreeBSD-src-2d9bc1f640252f5529c9e9f3706b173aaae57db9.tar.gz
Only compress tcp packets. Calculate size of
logbuff rather than guessing at 2000. PR: 2046 Submitted by: torii@tcd.hitachi.co.jp
Diffstat (limited to 'usr.sbin/ppp/log.c')
-rw-r--r--usr.sbin/ppp/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/log.c b/usr.sbin/ppp/log.c
index 2a45c20..091289c 100644
--- a/usr.sbin/ppp/log.c
+++ b/usr.sbin/ppp/log.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: log.c,v 1.8 1997/03/13 14:53:53 brian Exp $
+ * $Id: log.c,v 1.9 1997/05/04 02:39:03 ache Exp $
*
*/
#include "defs.h"
@@ -41,7 +41,7 @@
#ifdef USELOGFILE
static FILE *logfile;
#endif
-static char logbuff[2000];
+static char logbuff[MAX_MRU*3+(MAX_MRU/16+1)*22+80];
char *logptr;
static struct mbuf *logtop;
static struct mbuf *lognext;
OpenPOWER on IntegriCloud