log.h (85b542cf4f3d3d3338529aad0f9f006cdaeef9a8) | log.h (b6217683dc0269a53b799399522dbdfb5a4919cc) |
---|---|
1/*- 2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $Id: log.h,v 1.18 1997/12/21 12:11:07 brian Exp $ | 26 * $Id: log.h,v 1.18.2.1 1998/02/10 03:23:27 brian Exp $ |
27 */ 28 29#define LogMIN (1) 30#define LogASYNC (1) /* syslog(LOG_INFO, ....) */ 31#define LogCARRIER (2) 32#define LogCCP (3) 33#define LogCHAT (4) 34#define LogCOMMAND (5) --- 14 unchanged lines hidden (view full) --- 49#define LogALERT (19) /* syslog(LOG_ALERT, ....) */ 50#define LogMAX (19) 51 52struct mbuf; 53 54/* The first int arg for all of the following is one of the above values */ 55extern const char *LogName(int); 56extern void LogKeep(int); | 27 */ 28 29#define LogMIN (1) 30#define LogASYNC (1) /* syslog(LOG_INFO, ....) */ 31#define LogCARRIER (2) 32#define LogCCP (3) 33#define LogCHAT (4) 34#define LogCOMMAND (5) --- 14 unchanged lines hidden (view full) --- 49#define LogALERT (19) /* syslog(LOG_ALERT, ....) */ 50#define LogMAX (19) 51 52struct mbuf; 53 54/* The first int arg for all of the following is one of the above values */ 55extern const char *LogName(int); 56extern void LogKeep(int); |
57extern void LogKeepLocal(int); | 57extern void LogKeepLocal(int, u_long *); |
58extern void LogDiscard(int); | 58extern void LogDiscard(int); |
59extern void LogDiscardLocal(int); | 59extern void LogDiscardLocal(int, u_long *); |
60extern void LogDiscardAll(void); | 60extern void LogDiscardAll(void); |
61extern void LogDiscardAllLocal(void); | 61extern void LogDiscardAllLocal(u_long *); |
62#define LOG_KEPT_SYSLOG (1) /* Results of LogIsKept() */ 63#define LOG_KEPT_LOCAL (2) /* Results of LogIsKept() */ 64extern int LogIsKept(int); | 62#define LOG_KEPT_SYSLOG (1) /* Results of LogIsKept() */ 63#define LOG_KEPT_LOCAL (2) /* Results of LogIsKept() */ 64extern int LogIsKept(int); |
65extern int LogIsKeptLocal(int, u_long); |
|
65extern void LogOpen(const char *); 66extern void LogSetTun(int); 67extern void LogClose(void); 68extern void LogPrintf(int, const char *,...); 69extern void LogDumpBp(int, const char *, const struct mbuf *); 70extern void LogDumpBuff(int, const char *, const u_char *, int); | 66extern void LogOpen(const char *); 67extern void LogSetTun(int); 68extern void LogClose(void); 69extern void LogPrintf(int, const char *,...); 70extern void LogDumpBp(int, const char *, const struct mbuf *); 71extern void LogDumpBuff(int, const char *, const u_char *, int); |
72extern void log_RegisterPrompt(struct prompt *); 73extern void log_UnRegisterPrompt(struct prompt *); 74extern int log_ShowLevel(struct cmdargs const *); 75extern int log_SetLevel(struct cmdargs const *); 76extern int log_ShowWho(struct cmdargs const *); |
|