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/ipcp.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/ipcp.c')
-rw-r--r-- | usr.sbin/ppp/ipcp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c index c3b048a..f85fbc9 100644 --- a/usr.sbin/ppp/ipcp.c +++ b/usr.sbin/ppp/ipcp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ipcp.c,v 1.44 1997/12/24 09:28:11 brian Exp $ + * $Id: ipcp.c,v 1.45 1997/12/24 09:29:02 brian Exp $ * * TODO: * o More RFC1772 backwoard compatibility @@ -153,7 +153,10 @@ ReportIpcpStatus(struct cmdargs const *arg) fprintf(VarTerm, "Defaults:\n"); fprintf(VarTerm, " My Address: %s/%d\n", inet_ntoa(DefMyAddress.ipaddr), DefMyAddress.width); - fprintf(VarTerm, " His Address: %s/%d\n", + if (iplist_isvalid(&DefHisChoice)) + fprintf(VarTerm, " His Address: %s\n", DefHisChoice.src); + else + fprintf(VarTerm, " His Address: %s/%d\n", inet_ntoa(DefHisAddress.ipaddr), DefHisAddress.width); if (HaveTriggerAddress) fprintf(VarTerm, " Negotiation(trigger): %s\n", inet_ntoa(TriggerAddress)); |