diff options
author | brian <brian@cvs.openbsd.org> | 1997-12-27 13:45:22 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1997-12-27 13:45:22 +0000 |
commit | 620782ad72dc562f184f5c57e4c66d5f16339a52 (patch) | |
tree | d6c65588447a905f2a0575966336e1c028513a82 /usr.sbin/ppp/defs.c | |
parent | a572d36d1ef4f38506baacb05686c8e7db9fd534 (diff) |
Show who closes the diagnostic connection.
Show the IP range (if specified) in "show ipcp".
Close unused descriptors 0 and 2 in interactive mode.
Pass (size_t *) rather than (int *) to sysctl().
Diffstat (limited to 'usr.sbin/ppp/defs.c')
-rw-r--r-- | usr.sbin/ppp/defs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/defs.c b/usr.sbin/ppp/defs.c index 08937e68ab2..f73dec96f9d 100644 --- a/usr.sbin/ppp/defs.c +++ b/usr.sbin/ppp/defs.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: defs.c,v 1.4 1997/12/24 09:30:28 brian Exp $ + * $Id: defs.c,v 1.5 1997/12/27 13:45:18 brian Exp $ */ #include <sys/param.h> @@ -100,7 +100,7 @@ GetShortHost() } void -DropClient() +DropClient(int verbose) { FILE *oVarTerm; @@ -111,6 +111,7 @@ DropClient() fclose(oVarTerm); close(netfd); netfd = -1; - LogPrintf(LogPHASE, "Client connection closed.\n"); + if (verbose) + LogPrintf(LogPHASE, "Client connection dropped.\n"); } } |