summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/defs.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-12-27 13:45:57 +0000
committerbrian <brian@FreeBSD.org>1997-12-27 13:45:57 +0000
commitddf3da84955259f875ffc03f9b8945fb9e36d3a5 (patch)
tree29676590de1cf3ab7926a067f5898dde1345e653 /usr.sbin/ppp/defs.c
parentd03808004927d9310c50fb5885b4908a0d39c340 (diff)
downloadFreeBSD-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.c7
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");
}
}
OpenPOWER on IntegriCloud