diff options
author | brian <brian@FreeBSD.org> | 2001-11-03 21:45:32 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-11-03 21:45:32 +0000 |
commit | 6a1de171ac53cf7f8b25dd40c8d9578c6d9cbc5d (patch) | |
tree | ec148ab8a0b3c8d98c08221f9c5b958f68a4203f /usr.sbin/ppp/ppp.8.m4 | |
parent | 008cbb2ddee52fd6e070d16340a547b330412183 (diff) | |
download | FreeBSD-src-6a1de171ac53cf7f8b25dd40c8d9578c6d9cbc5d.zip FreeBSD-src-6a1de171ac53cf7f8b25dd40c8d9578c6d9cbc5d.tar.gz |
Add a ``log'' command for logging specific information.
Add an ``UPTIME'' variable to indicate the bundle uptime.
It's now possible to put something like this in ppp.linkdown
for a server setup:
MYADDR:
log Session closing: User USER, address HISADDR, up UPTIME
Fixed some memory leakage with commands that expand words.
Made some functions static.
Fixed a diagnostic bug (iface add .... SIOCDIFADDR)
Diffstat (limited to 'usr.sbin/ppp/ppp.8.m4')
-rw-r--r-- | usr.sbin/ppp/ppp.8.m4 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp.8.m4 b/usr.sbin/ppp/ppp.8.m4 index 608576b..349749c 100644 --- a/usr.sbin/ppp/ppp.8.m4 +++ b/usr.sbin/ppp/ppp.8.m4 @@ -3549,8 +3549,11 @@ This value is available irrespective of whether utmp logging is enabled. .El .Pp These substitutions are also done by the -.Dq set proctitle -command. +.Dq set proctitle , +.Dq ident +and +.Dq log +commands. .Pp If you wish to pause .Nm @@ -3823,6 +3826,12 @@ or commands, .Nm will not attempt to make an immediate connection. +.It log Ar word Op Ar word Ns No ... +Send the given word(s) to the log file with the prefix +.Dq LOG: . +Word substitutions are done as explained under the +.Dq !bg +command above. .It open Op lcp|ccp|ipcp This is the opposite of the .Dq close |