log.c (25445) | log.c (25561) |
---|---|
1/* 2 * PPP logging facility 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 logging facility 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: log.c,v 1.8 1997/03/13 14:53:53 brian Exp $ | 20 * $Id: log.c,v 1.9 1997/05/04 02:39:03 ache Exp $ |
21 * 22 */ 23#include "defs.h" 24#include <time.h> 25#include <netdb.h> 26#ifdef __STDC__ 27#include <stdarg.h> 28#else --- 7 unchanged lines hidden (view full) --- 36 37#define MAXLOG 70 38 39#define USELOGFILE 40 41#ifdef USELOGFILE 42static FILE *logfile; 43#endif | 21 * 22 */ 23#include "defs.h" 24#include <time.h> 25#include <netdb.h> 26#ifdef __STDC__ 27#include <stdarg.h> 28#else --- 7 unchanged lines hidden (view full) --- 36 37#define MAXLOG 70 38 39#define USELOGFILE 40 41#ifdef USELOGFILE 42static FILE *logfile; 43#endif |
44static char logbuff[2000]; | 44static char logbuff[MAX_MRU*3+(MAX_MRU/16+1)*22+80]; |
45char *logptr; 46static struct mbuf *logtop; 47static struct mbuf *lognext; 48static int logcnt; 49static int mypid; 50 51int loglevel = LOG_LINK_BIT | LOG_CARRIER_BIT | LOG_PHASE_BIT; 52 --- 262 unchanged lines hidden --- | 45char *logptr; 46static struct mbuf *logtop; 47static struct mbuf *lognext; 48static int logcnt; 49static int mypid; 50 51int loglevel = LOG_LINK_BIT | LOG_CARRIER_BIT | LOG_PHASE_BIT; 52 --- 262 unchanged lines hidden --- |