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/iface.c | |
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/iface.c')
-rw-r--r-- | usr.sbin/ppp/iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/iface.c b/usr.sbin/ppp/iface.c index d3ba1d9..ea4105b 100644 --- a/usr.sbin/ppp/iface.c +++ b/usr.sbin/ppp/iface.c @@ -343,7 +343,7 @@ iface_addr_Add(const char *name, struct iface_addr *addr, int s) end, ncprange_ntoa(&addr->ifa), strerror(errno)); else { snprintf(dst, sizeof dst, "%s", ncpaddr_ntoa(&addr->peer)); - log_Printf(LogWARN, "iface add: ioctl(SIOCDIFADDR%s, %s -> %s): %s\n", + log_Printf(LogWARN, "iface add: ioctl(SIOCAIFADDR%s, %s -> %s): %s\n", end, ncprange_ntoa(&addr->ifa), dst, strerror(errno)); } } |