Lines Matching refs:cx

208   const char *cx;  in HelpCommand()  local
241 cx = showcx(cmd); in HelpCommand()
246 cmd->name, cxlen, cxlen, cx, dmax, dmax, cmd->helpmes); in HelpCommand()
259 Concatinate(arg->cx->physical->link.lcp.cfg.ident, in IdentCommand()
260 sizeof arg->cx->physical->link.lcp.cfg.ident, in IdentCommand()
268 if (arg->cx->state < DATALINK_LCP) { in SendIdentification()
272 return lcp_SendIdentification(&arg->cx->physical->link.lcp) ? 0 : 1; in SendIdentification()
289 bundle_DatalinkClone(arg->bundle, arg->cx, name); in CloneCommand()
301 if (arg->cx->state != DATALINK_CLOSED) { in RemoveCommand()
306 bundle_DatalinkRemove(arg->bundle, arg->cx); in RemoveCommand()
316 if (bundle_RenameDatalink(arg->bundle, arg->cx, arg->argv[arg->argn])) in RenameCommand()
320 arg->cx->name, arg->argv[arg->argn]); in RenameCommand()
341 system_Select(arg->bundle, arg->argv[n], CONFFILE, arg->prompt, arg->cx); in LoadCommand()
349 system_Select(arg->bundle, "default", CONFFILE, arg->prompt, arg->cx); in LoadCommand()
391 if ((arg->cx && !(arg->cx->physical->type & (PHYS_INTERACTIVE|PHYS_AUTO))) in DialCommand()
392 || (!arg->cx && in DialCommand()
402 bundle_Open(arg->bundle, arg->cx ? arg->cx->name : NULL, PHYS_ALL, 1); in DialCommand()
885 if (arg->cx->physical->async.cfg.EscMap[32]) { in ShowEscape()
890 if (arg->cx->physical->async.cfg.EscMap[code]) in ShowEscape()
892 if (arg->cx->physical->async.cfg.EscMap[code] & (1 << bit)) { in ShowEscape()
912 if (!arg->cx->physical->link.lcp.fsm.StoppedTimer.load) in ShowStopped()
916 arg->cx->physical->link.lcp.fsm.StoppedTimer.load / SECTICKS); in ShowStopped()
919 if (!arg->cx->physical->link.ccp.fsm.StoppedTimer.load) in ShowStopped()
923 arg->cx->physical->link.ccp.fsm.StoppedTimer.load / SECTICKS); in ShowStopped()
1056 char const *const *argv, struct prompt *prompt, struct datalink *cx) in FindExec() argument
1069 if ((cmd->lauth & LOCAL_CX) && !cx) in FindExec()
1071 cx = bundle2datalink(bundle, NULL); in FindExec()
1073 if ((cmd->lauth & LOCAL_CX) && !cx) in FindExec()
1077 if (cx && !(cmd->lauth & (LOCAL_CX|LOCAL_CX_OPT))) { in FindExec()
1079 mkPrefix(argn+1, argv, prefix, sizeof prefix), cx->name); in FindExec()
1080 cx = NULL; in FindExec()
1088 arg.cx = cx; in FindExec()
1160 struct prompt *prompt, const char *label, struct datalink *cx) in command_Run() argument
1190 FindExec(bundle, Commands, argc, 0, argv, prompt, cx); in command_Run()
1215 arg->prompt, arg->cx); in ShowCommand()
1230 if (arg->cx->physical->link.lcp.fsm.state > ST_CLOSED) { in TerminalCommand()
1232 State2Nam(arg->cx->physical->link.lcp.fsm.state)); in TerminalCommand()
1236 datalink_Up(arg->cx, 0, 0); in TerminalCommand()
1237 prompt_TtyTermMode(arg->prompt, arg->cx); in TerminalCommand()
1258 bundle_Open(arg->bundle, arg->cx ? arg->cx->name : NULL, PHYS_ALL, 1); in OpenCommand()
1261 struct datalink *cx = arg->cx ? in OpenCommand() local
1262 arg->cx : bundle2datalink(arg->bundle, NULL); in OpenCommand()
1263 if (cx) { in OpenCommand()
1264 if (cx->physical->link.lcp.fsm.state == ST_OPENED) in OpenCommand()
1265 fsm_Reopen(&cx->physical->link.lcp.fsm); in OpenCommand()
1267 bundle_Open(arg->bundle, cx->name, PHYS_ALL, 1); in OpenCommand()
1289 if (arg->cx) in OpenCommand()
1307 bundle_Close(arg->bundle, arg->cx ? arg->cx->name : NULL, CLOSE_STAYDOWN); in CloseCommand()
1310 bundle_Close(arg->bundle, arg->cx ? arg->cx->name : NULL, CLOSE_LCP); in CloseCommand()
1335 if (arg->cx) in DownCommand()
1336 datalink_Down(arg->cx, CLOSE_STAYDOWN); in DownCommand()
1341 if (arg->cx) in DownCommand()
1342 datalink_Down(arg->cx, CLOSE_LCP); in DownCommand()
1346 struct fsm *fp = arg->cx ? &arg->cx->physical->link.ccp.fsm : in DownCommand()
1369 physical_SetSync(arg->cx->physical); in SetModemSpeed()
1379 if (physical_SetSpeed(arg->cx->physical, speed)) in SetModemSpeed()
1391 struct link *l = &arg->cx->physical->link; in SetStoppedTimeout()
1520 arg->cx->physical->async.cfg.EscMap[code] = 0; in SetEscape()
1525 arg->cx->physical->async.cfg.EscMap[code >> 3] |= (1 << (code & 7)); in SetEscape()
1526 arg->cx->physical->async.cfg.EscMap[32] = 1; in SetEscape()
1626 struct datalink *cx = arg->cx; /* LOCAL_CX uses this */ in SetVariable() local
1638 if ((arg->cmd->lauth & LOCAL_CX) && !cx) { in SetVariable()
1642 } else if (cx && !(arg->cmd->lauth & (LOCAL_CX|LOCAL_CX_OPT))) { in SetVariable()
1644 arg->cmd->name, cx->name); in SetVariable()
1645 cx = NULL; in SetVariable()
1715 strncpy(cx->cfg.script.dial, argp, sizeof cx->cfg.script.dial - 1); in SetVariable()
1716 cx->cfg.script.dial[sizeof cx->cfg.script.dial - 1] = '\0'; in SetVariable()
1720 strncpy(cx->cfg.script.login, argp, sizeof cx->cfg.script.login - 1); in SetVariable()
1721 cx->cfg.script.login[sizeof cx->cfg.script.login - 1] = '\0'; in SetVariable()
1795 physical_SetDeviceList(cx->physical, arg->argc - arg->argn, in SetVariable()
1803 cx->physical->link.lcp.cfg.accmap = (u_int32_t)ulong_val; in SetVariable()
1817 bundle_SetMode(arg->bundle, cx, mode); in SetVariable()
1967 cx->physical->link.lcp.cfg.openmode = arg->argc > arg->argn+1 ? in SetVariable()
1970 cx->physical->link.lcp.cfg.openmode = OPEN_PASSIVE; in SetVariable()
1978 strncpy(cx->cfg.phone.list, argp, sizeof cx->cfg.phone.list - 1); in SetVariable()
1979 cx->cfg.phone.list[sizeof cx->cfg.phone.list - 1] = '\0'; in SetVariable()
1980 cx->phone.alt = cx->phone.next = NULL; in SetVariable()
1984 strncpy(cx->cfg.script.hangup, argp, sizeof cx->cfg.script.hangup - 1); in SetVariable()
1985 cx->cfg.script.hangup[sizeof cx->cfg.script.hangup - 1] = '\0'; in SetVariable()
1994 strncpy(cx->cfg.script.logout, argp, sizeof cx->cfg.script.logout - 1); in SetVariable()
1995 cx->cfg.script.logout[sizeof cx->cfg.script.logout - 1] = '\0'; in SetVariable()
2028 &cx->physical->link.lcp.cfg.fsm.timeout, in SetVariable()
2029 &cx->physical->link.lcp.cfg.fsm.maxreq, in SetVariable()
2030 &cx->physical->link.lcp.cfg.fsm.maxtrm, DEF_FSMTRIES); in SetVariable()
2035 &cx->chap.auth.cfg.fsm.timeout, in SetVariable()
2036 &cx->chap.auth.cfg.fsm.maxreq, NULL, DEF_FSMAUTHTRIES); in SetVariable()
2041 &cx->pap.cfg.fsm.timeout, &cx->pap.cfg.fsm.maxreq, in SetVariable()
2099 cx->cfg.callback.opmask = 0; in SetVariable()
2102 cx->cfg.callback.opmask |= CALLBACK_BIT(CALLBACK_AUTH); in SetVariable()
2104 cx->cfg.callback.opmask |= CALLBACK_BIT(CALLBACK_CBCP); in SetVariable()
2109 cx->cfg.callback.opmask |= CALLBACK_BIT(CALLBACK_E164); in SetVariable()
2110 strncpy(cx->cfg.callback.msg, arg->argv[++dummyint], in SetVariable()
2111 sizeof cx->cfg.callback.msg - 1); in SetVariable()
2112 cx->cfg.callback.msg[sizeof cx->cfg.callback.msg - 1] = '\0'; in SetVariable()
2115 cx->cfg.callback.opmask |= CALLBACK_BIT(CALLBACK_NONE); in SetVariable()
2121 if (cx->cfg.callback.opmask == CALLBACK_BIT(CALLBACK_NONE)) in SetVariable()
2122 cx->cfg.callback.opmask = 0; in SetVariable()
2126 cx->cfg.cbcp.delay = 0; in SetVariable()
2127 *cx->cfg.cbcp.phone = '\0'; in SetVariable()
2128 cx->cfg.cbcp.fsmretry = DEF_FSMRETRY; in SetVariable()
2130 strncpy(cx->cfg.cbcp.phone, arg->argv[arg->argn], in SetVariable()
2131 sizeof cx->cfg.cbcp.phone - 1); in SetVariable()
2132 cx->cfg.cbcp.phone[sizeof cx->cfg.cbcp.phone - 1] = '\0'; in SetVariable()
2134 cx->cfg.cbcp.delay = atoi(arg->argv[arg->argn + 1]); in SetVariable()
2141 cx->cfg.cbcp.fsmretry = long_val; in SetVariable()
2186 cx->physical->cfg.cd.delay = long_val; in SetVariable()
2187 cx->physical->cfg.cd.necessity = argp[strlen(argp)-1] == '!' ? in SetVariable()
2190 cx->physical->cfg.cd.necessity = CD_NOTREQUIRED; in SetVariable()
2192 cx->physical->cfg.cd.delay = 0; in SetVariable()
2193 cx->physical->cfg.cd.necessity = CD_DEFAULT; in SetVariable()
2199 res = physical_SetParity(arg->cx->physical, argp); in SetVariable()
2208 physical_SetRtsCts(arg->cx->physical, 1); in SetVariable()
2210 physical_SetRtsCts(arg->cx->physical, 0); in SetVariable()
2393 arg->prompt, arg->cx); in SetCommand()
2593 struct datalink *cx; in LinkCommand() local
2600 cx = arg->bundle->links; in LinkCommand()
2601 while (cx) { in LinkCommand()
2603 dl = cx->next; in LinkCommand()
2605 arg->prompt, cx); in LinkCommand()
2606 for (cx = arg->bundle->links; cx; cx = cx->next) in LinkCommand()
2607 if (cx == dl) in LinkCommand()
2622 cx = bundle2datalink(arg->bundle, name); in LinkCommand()
2623 if (cx) in LinkCommand()
2625 arg->prompt, cx); in LinkCommand()
2642 if (arg->cx) in command_ChooseLink()
2643 return &arg->cx->physical->link; in command_ChooseLink()
2742 struct datalink *cx = arg->cx; /* LOCAL_CX uses this */ in NegotiateSet() local
2750 if ((arg->cmd->lauth & LOCAL_CX) && !cx) { in NegotiateSet()
2754 } else if (cx && !(arg->cmd->lauth & (LOCAL_CX|LOCAL_CX_OPT))) { in NegotiateSet()
2756 cmd, arg->cmd->name, cx->name); in NegotiateSet()
2757 cx = NULL; in NegotiateSet()
2762 cx->physical->link.lcp.cfg.acfcomp &= keep; in NegotiateSet()
2763 cx->physical->link.lcp.cfg.acfcomp |= add; in NegotiateSet()
2766 cx->physical->link.lcp.cfg.chap05 &= keep; in NegotiateSet()
2767 cx->physical->link.lcp.cfg.chap05 |= add; in NegotiateSet()
2771 cx->physical->link.lcp.cfg.chap80nt &= keep; in NegotiateSet()
2772 cx->physical->link.lcp.cfg.chap80nt |= add; in NegotiateSet()
2775 cx->physical->link.lcp.cfg.chap80lm &= keep; in NegotiateSet()
2776 cx->physical->link.lcp.cfg.chap80lm |= add; in NegotiateSet()
2779 cx->physical->link.lcp.cfg.chap81 &= keep; in NegotiateSet()
2780 cx->physical->link.lcp.cfg.chap81 |= add; in NegotiateSet()
2800 cx->physical->link.lcp.cfg.lqr &= keep; in NegotiateSet()
2801 cx->physical->link.lcp.cfg.lqr |= add; in NegotiateSet()
2804 cx->physical->link.lcp.cfg.pap &= keep; in NegotiateSet()
2805 cx->physical->link.lcp.cfg.pap |= add; in NegotiateSet()
2816 cx->physical->link.lcp.cfg.protocomp &= keep; in NegotiateSet()
2817 cx->physical->link.lcp.cfg.protocomp |= add; in NegotiateSet()
2957 0 : OPT_MAX), 2, 1, argv, arg->prompt, arg->cx); in NegotiateCommand()
2984 struct datalink *cx; in ClearCommand() local
2991 cx = arg->cx; in ClearCommand()
2992 if (!cx) in ClearCommand()
2993 cx = bundle2datalink(arg->bundle, NULL); in ClearCommand()
2994 if (!cx) { in ClearCommand()
2998 t = &cx->physical->link.stats.total; in ClearCommand()
3043 arg->prompt, arg->cx); in RunListCommand()