diff options
author | brian <brian@FreeBSD.org> | 2000-03-14 01:46:49 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-03-14 01:46:49 +0000 |
commit | 3b65c00f328daf0fc8db68d8f715a571e8c6e184 (patch) | |
tree | 6c366de9a054a4fb48615320fcc3d96eea3da698 /usr.sbin/ppp/log.h | |
parent | a69e155f87ae5e1b59088d06927f1d02e5fd2518 (diff) | |
download | FreeBSD-src-3b65c00f328daf0fc8db68d8f715a571e8c6e184.zip FreeBSD-src-3b65c00f328daf0fc8db68d8f715a571e8c6e184.tar.gz |
Add ``set log dns'' to log DNS QUERY packets.
This is invaluable for dial-on-demand connections...
In ppp.linkup:
set log -dns -tcp/ip
and in ppp.linkdown
set log +dns +tcp/ip
giving a much better account of why the link came up.
Diffstat (limited to 'usr.sbin/ppp/log.h')
-rw-r--r-- | usr.sbin/ppp/log.h | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/usr.sbin/ppp/log.h b/usr.sbin/ppp/log.h index 70fe4c2..35ccbbb 100644 --- a/usr.sbin/ppp/log.h +++ b/usr.sbin/ppp/log.h @@ -34,22 +34,24 @@ #define LogCOMMAND (5) #define LogCONNECT (6) #define LogDEBUG (7) /* syslog(LOG_DEBUG, ....) */ -#define LogHDLC (8) -#define LogID0 (9) -#define LogIPCP (10) -#define LogLCP (11) -#define LogLQM (12) -#define LogPHASE (13) -#define LogPHYSICAL (14) /* syslog(LOG_INFO, ....) */ -#define LogSYNC (15) /* syslog(LOG_INFO, ....) */ -#define LogTCPIP (16) -#define LogTIMER (17) /* syslog(LOG_DEBUG, ....) */ -#define LogTUN (18) /* If set, tun%d is output with each message */ -#define LogMAXCONF (18) -#define LogWARN (19) /* Sent to VarTerm else syslog(LOG_WARNING, ) */ -#define LogERROR (20) /* syslog(LOG_ERR, ....), + sent to VarTerm */ -#define LogALERT (21) /* syslog(LOG_ALERT, ....) */ -#define LogMAX (21) +#define LogDNS (8) +#define LogHDLC (9) +#define LogID0 (10) +#define LogIPCP (11) +#define LogLCP (12) +#define LogLQM (13) +#define LogPHASE (14) +#define LogPHYSICAL (15) /* syslog(LOG_INFO, ....) */ +#define LogSYNC (16) /* syslog(LOG_INFO, ....) */ +#define LogTCPIP (17) +#define LogTIMER (18) /* syslog(LOG_DEBUG, ....) */ +#define LogTUN (19) /* If set, tun%d is output with each message */ +#define LogWARN (20) /* Sent to VarTerm else syslog(LOG_WARNING, ) */ +#define LogERROR (21) /* syslog(LOG_ERR, ....), + sent to VarTerm */ +#define LogALERT (22) /* syslog(LOG_ALERT, ....) */ + +#define LogMAXCONF (19) +#define LogMAX (22) struct mbuf; struct cmdargs; |