diff options
author | Brian Somers <brian@FreeBSD.org> | 1998-04-11 21:50:47 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1998-04-11 21:50:47 +0000 |
commit | c08717df31e851310c715a1eb7fd7aab051a3b88 (patch) | |
tree | 20e55008073ab4322a86ef0bc4172506ec9ef22e /usr.sbin/ppp/bundle.c | |
parent | 99294c8bfa6799d9182a673cc1732f265cb71d38 (diff) | |
download | src-c08717df31e851310c715a1eb7fd7aab051a3b88.tar.gz src-c08717df31e851310c715a1eb7fd7aab051a3b88.zip |
Remove ``show timeout'' and ``show auth'' and add ``show bundle''.
Mention ``show timer'' in the man page.
Notes
Notes:
svn path=/cvs2svn/branches/MP/; revision=35143
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r-- | usr.sbin/ppp/bundle.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index 4b5f7c27bed8..5e46aa2964f8 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bundle.c,v 1.1.2.43 1998/04/07 23:45:41 brian Exp $ + * $Id: bundle.c,v 1.1.2.44 1998/04/10 13:19:01 brian Exp $ */ #include <sys/types.h> @@ -850,6 +850,29 @@ bundle_ShowLinks(struct cmdargs const *arg) return 0; } +int +bundle_ShowStatus(struct cmdargs const *arg) +{ + int remaining; + + prompt_Printf(arg->prompt, "Phase %s\n", bundle_PhaseName(arg->bundle)); + prompt_Printf(arg->prompt, " Interface: %s\n", arg->bundle->dev); + + prompt_Printf(arg->prompt, "\nDefaults:\n"); + prompt_Printf(arg->prompt, " Auth name: %s\n", arg->bundle->cfg.auth.name); + prompt_Printf(arg->prompt, " Idle Timer: "); + if (arg->bundle->cfg.idle_timeout) { + prompt_Printf(arg->prompt, "%ds", arg->bundle->cfg.idle_timeout); + remaining = bundle_RemainingIdleTime(arg->bundle); + if (remaining != -1) + prompt_Printf(arg->prompt, " (%ds remaining)", remaining); + prompt_Printf(arg->prompt, "\n"); + } else + prompt_Printf(arg->prompt, "disabled\n"); + + return 0; +} + static void bundle_IdleTimeout(void *v) { |