Explain what the ``*'' means for a CBCP phone number

in ``show link''.
This commit is contained in:
Brian Somers 1998-10-17 12:28:06 +00:00
parent 571b60bf70
commit cf784a89b7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40483

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * 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> #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, "%scbcp\n", comma ? ", " : "");
prompt_Printf(arg->prompt, " CBCP: delay: %ds\n", prompt_Printf(arg->prompt, " CBCP: delay: %ds\n",
arg->cx->cfg.cbcp.delay); arg->cx->cfg.cbcp.delay);
prompt_Printf(arg->prompt, " phone: %s\n", prompt_Printf(arg->prompt, " phone: ");
arg->cx->cfg.cbcp.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", prompt_Printf(arg->prompt, " timeout: %lds\n",
arg->cx->cfg.cbcp.fsmretry); arg->cx->cfg.cbcp.fsmretry);
} else } else