diff options
| author | Brian Somers <brian@FreeBSD.org> | 1998-10-17 12:28:06 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1998-10-17 12:28:06 +0000 |
| commit | cf784a89b7f8d34ac4f26b716afd7e32280ac2ca (patch) | |
| tree | f048569db20ec75288fcea25421f7c2e532a0afb | |
| parent | 571b60bf70b507237a54db7de6e067159ffbf15c (diff) | |
Notes
| -rw-r--r-- | usr.sbin/ppp/datalink.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.sbin/ppp/datalink.c b/usr.sbin/ppp/datalink.c index cd6bd0ad3002..ebb48add6d42 100644 --- a/usr.sbin/ppp/datalink.c +++ b/usr.sbin/ppp/datalink.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: datalink.c,v 1.18 1998/08/09 15:34:11 brian Exp $ + * $Id: datalink.c,v 1.19 1998/08/18 00:53:48 brian Exp $ */ #include <sys/types.h> @@ -984,8 +984,14 @@ datalink_Show(struct cmdargs const *arg) prompt_Printf(arg->prompt, "%scbcp\n", comma ? ", " : ""); prompt_Printf(arg->prompt, " CBCP: delay: %ds\n", arg->cx->cfg.cbcp.delay); - prompt_Printf(arg->prompt, " phone: %s\n", - arg->cx->cfg.cbcp.phone); + prompt_Printf(arg->prompt, " phone: "); + if (!strcmp(arg->cx->cfg.cbcp.phone, "*")) { + if (arg->cx->physical->type & PHYS_DIRECT) + prompt_Printf(arg->prompt, "Caller decides\n"); + else + prompt_Printf(arg->prompt, "Dialback server decides\n"); + } else + prompt_Printf(arg->prompt, "%s\n", arg->cx->cfg.cbcp.phone); prompt_Printf(arg->prompt, " timeout: %lds\n", arg->cx->cfg.cbcp.fsmretry); } else |
