]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a ``log'' command for logging specific information.
authorbrian <brian@FreeBSD.org>
Sat, 3 Nov 2001 21:45:32 +0000 (21:45 +0000)
committerbrian <brian@FreeBSD.org>
Sat, 3 Nov 2001 21:45:32 +0000 (21:45 +0000)
commit6a1de171ac53cf7f8b25dd40c8d9578c6d9cbc5d
treeec148ab8a0b3c8d98c08221f9c5b958f68a4203f
parent008cbb2ddee52fd6e070d16340a547b330412183
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)
13 files changed:
usr.sbin/ppp/bundle.c
usr.sbin/ppp/bundle.h
usr.sbin/ppp/chat.c
usr.sbin/ppp/command.c
usr.sbin/ppp/command.h
usr.sbin/ppp/defs.c
usr.sbin/ppp/defs.h
usr.sbin/ppp/iface.c
usr.sbin/ppp/lcp.c
usr.sbin/ppp/log.c
usr.sbin/ppp/log.h
usr.sbin/ppp/ppp.8.m4
usr.sbin/ppp/systems.h