Lines Matching refs:mode
208 int mode;
220 sw->mode = PHYS_INTERACTIVE;
268 sw->mode = newmode;
275 fprintf(stderr, "You may specify only one mode.\n");
279 if (sw->mode == PHYS_AUTO && arg == argc) {
280 fprintf(stderr, "A system must be specified in auto mode.\n");
288 CheckLabel(const char *label, struct prompt *prompt, int mode)
292 if ((err = system_IsValid(label, prompt, mode)) != NULL) {
294 if (mode == PHYS_DIRECT)
341 * routing table and then run ppp in interactive mode. The `show route'
344 if (sw.mode == PHYS_INTERACTIVE) {
352 /* Allow output for the moment (except in direct mode) */
353 if (sw.mode == PHYS_DIRECT)
379 CheckLabel(argv[arg], prompt, sw.mode);
381 CheckLabel("default", prompt, sw.mode);
384 prompt_Printf(prompt, "Working in %s mode\n", mode2Nam(sw.mode));
386 if ((bundle = bundle_Create(TUN_PREFIX, sw.mode, sw.unit)) == NULL)
406 if (sw.mode == PHYS_INTERACTIVE)
423 if (sw.mode == PHYS_AUTO &&
426 "in auto mode.\n");
436 if (sw.mode != PHYS_INTERACTIVE) {
437 if (sw.mode != PHYS_DIRECT) {
442 if (sw.mode == PHYS_BACKGROUND && pipe(bgpipe)) {
457 if (sw.mode == PHYS_BACKGROUND) {
498 } else if (sw.mode == PHYS_BACKGROUND) {
517 * *may* get used in exec/pipe mode.
534 log_Printf(LogPHASE, "PPP Started (%s mode).\n", mode2Nam(sw.mode));