diff options
author | brian <brian@FreeBSD.org> | 1997-12-27 13:45:57 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-12-27 13:45:57 +0000 |
commit | ddf3da84955259f875ffc03f9b8945fb9e36d3a5 (patch) | |
tree | 29676590de1cf3ab7926a067f5898dde1345e653 /usr.sbin/ppp/defs.c | |
parent | d03808004927d9310c50fb5885b4908a0d39c340 (diff) | |
download | FreeBSD-src-ddf3da84955259f875ffc03f9b8945fb9e36d3a5.zip FreeBSD-src-ddf3da84955259f875ffc03f9b8945fb9e36d3a5.tar.gz |
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 b23d7d9c..7ef92c3 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.7 1997/12/23 22:38:53 brian Exp $ + * $Id: defs.c,v 1.8 1997/12/24 09:28:56 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"); } } |